Searched refs:num_readers (Results 1 – 1 of 1) sorted by relevance
63 unsigned num_readers = (__state_ & __n_readers_) + 1; in lock_shared() local65 __state_ |= num_readers; in lock_shared()72 unsigned num_readers = __state_ & __n_readers_; in try_lock_shared() local73 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() local89 __state_ |= num_readers; in unlock_shared()92 if (num_readers == 0) in unlock_shared()97 if (num_readers == __n_readers_ - 1) in unlock_shared()