Lines Matching refs:__base

183     __shared_mutex_base __base;
185 _LIBCPP_INLINE_VISIBILITY shared_mutex() : __base() {}
192 _LIBCPP_INLINE_VISIBILITY void lock() { return __base.lock(); }
193 _LIBCPP_INLINE_VISIBILITY bool try_lock() { return __base.try_lock(); }
194 _LIBCPP_INLINE_VISIBILITY void unlock() { return __base.unlock(); }
197 _LIBCPP_INLINE_VISIBILITY void lock_shared() { return __base.lock_shared(); }
198 _LIBCPP_INLINE_VISIBILITY bool try_lock_shared() { return __base.try_lock_shared(); }
199 _LIBCPP_INLINE_VISIBILITY void unlock_shared() { return __base.unlock_shared(); }
202 // _LIBCPP_INLINE_VISIBILITY native_handle_type native_handle() { return __base::unlock_shared(…
209 __shared_mutex_base __base;
255 unique_lock<mutex> __lk(__base.__mut_);
256 if (__base.__state_ & __base.__write_entered_)
260 cv_status __status = __base.__gate1_.wait_until(__lk, __abs_time);
261 if ((__base.__state_ & __base.__write_entered_) == 0)
267 __base.__state_ |= __base.__write_entered_;
268 if (__base.__state_ & __base.__n_readers_)
272 cv_status __status = __base.__gate2_.wait_until(__lk, __abs_time);
273 if ((__base.__state_ & __base.__n_readers_) == 0)
277 __base.__state_ &= ~__base.__write_entered_;
278 __base.__gate1_.notify_all();
291 unique_lock<mutex> __lk(__base.__mut_);
292 …if ((__base.__state_ & __base.__write_entered_) || (__base.__state_ & __base.__n_readers_) == __ba…
296 cv_status status = __base.__gate1_.wait_until(__lk, __abs_time);
297 if ((__base.__state_ & __base.__write_entered_) == 0 &&
298 … (__base.__state_ & __base.__n_readers_) < __base.__n_readers_)
304 unsigned __num_readers = (__base.__state_ & __base.__n_readers_) + 1;
305 __base.__state_ &= ~__base.__n_readers_;
306 __base.__state_ |= __num_readers;