• Home
  • Raw
  • Download

Lines Matching refs:__base

180     __shared_mutex_base __base;
182 _LIBCPP_INLINE_VISIBILITY shared_mutex() : __base() {}
189 _LIBCPP_INLINE_VISIBILITY void lock() { return __base.lock(); }
190 _LIBCPP_INLINE_VISIBILITY bool try_lock() { return __base.try_lock(); }
191 _LIBCPP_INLINE_VISIBILITY void unlock() { return __base.unlock(); }
194 _LIBCPP_INLINE_VISIBILITY void lock_shared() { return __base.lock_shared(); }
195 _LIBCPP_INLINE_VISIBILITY bool try_lock_shared() { return __base.try_lock_shared(); }
196 _LIBCPP_INLINE_VISIBILITY void unlock_shared() { return __base.unlock_shared(); }
199 // _LIBCPP_INLINE_VISIBILITY native_handle_type native_handle() { return __base::unlock_shared(…
206 __shared_mutex_base __base;
252 unique_lock<mutex> __lk(__base.__mut_);
253 if (__base.__state_ & __base.__write_entered_)
257 cv_status __status = __base.__gate1_.wait_until(__lk, __abs_time);
258 if ((__base.__state_ & __base.__write_entered_) == 0)
264 __base.__state_ |= __base.__write_entered_;
265 if (__base.__state_ & __base.__n_readers_)
269 cv_status __status = __base.__gate2_.wait_until(__lk, __abs_time);
270 if ((__base.__state_ & __base.__n_readers_) == 0)
274 __base.__state_ &= ~__base.__write_entered_;
275 __base.__gate1_.notify_all();
288 unique_lock<mutex> __lk(__base.__mut_);
289 …if ((__base.__state_ & __base.__write_entered_) || (__base.__state_ & __base.__n_readers_) == __ba…
293 cv_status status = __base.__gate1_.wait_until(__lk, __abs_time);
294 if ((__base.__state_ & __base.__write_entered_) == 0 &&
295 … (__base.__state_ & __base.__n_readers_) < __base.__n_readers_)
301 unsigned __num_readers = (__base.__state_ & __base.__n_readers_) + 1;
302 __base.__state_ &= ~__base.__n_readers_;
303 __base.__state_ |= __num_readers;