Searched refs:num_readers (Results 1 – 1 of 1) sorted by relevance
64 unsigned num_readers = (__state_ & __n_readers_) + 1; in lock_shared() local66 __state_ |= num_readers; in lock_shared()73 unsigned num_readers = __state_ & __n_readers_; in try_lock_shared() local74 if (!(__state_ & __write_entered_) && num_readers != __n_readers_) in try_lock_shared()76 ++num_readers; in try_lock_shared()78 __state_ |= num_readers; in try_lock_shared()88 unsigned num_readers = (__state_ & __n_readers_) - 1; in unlock_shared() local90 __state_ |= num_readers; in unlock_shared()93 if (num_readers == 0) in unlock_shared()98 if (num_readers == __n_readers_ - 1) in unlock_shared()