Home
last modified time | relevance | path

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

/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/
Dshared_mutex.cpp63 unsigned num_readers = (__state_ & __n_readers_) + 1; in lock_shared() local
65 __state_ |= num_readers; in lock_shared()
72 unsigned num_readers = __state_ & __n_readers_; in try_lock_shared() local
73 if (!(__state_ & __write_entered_) && num_readers != __n_readers_) in try_lock_shared()
75 ++num_readers; in try_lock_shared()
77 __state_ |= num_readers; in try_lock_shared()
87 unsigned num_readers = (__state_ & __n_readers_) - 1; in unlock_shared() local
89 __state_ |= num_readers; in unlock_shared()
92 if (num_readers == 0) in unlock_shared()
97 if (num_readers == __n_readers_ - 1) in unlock_shared()