Home
last modified time | relevance | path

Searched refs:num_readers (Results 1 – 1 of 1) sorted by relevance

/external/libcxx/src/
Dshared_mutex.cpp65 unsigned num_readers = (__state_ & __n_readers_) + 1; in lock_shared() local
67 __state_ |= num_readers; in lock_shared()
74 unsigned num_readers = __state_ & __n_readers_; in try_lock_shared() local
75 if (!(__state_ & __write_entered_) && num_readers != __n_readers_) in try_lock_shared()
77 ++num_readers; in try_lock_shared()
79 __state_ |= num_readers; in try_lock_shared()
89 unsigned num_readers = (__state_ & __n_readers_) - 1; in unlock_shared() local
91 __state_ |= num_readers; in unlock_shared()
94 if (num_readers == 0) in unlock_shared()
99 if (num_readers == __n_readers_ - 1) in unlock_shared()