shared_timed_mutex::shared_timed_mutex |
( |
| ) |
|
|
inline |
mutex _Mymtx
Definition: shared_mutex:249
condition_variable _Read_queue
Definition: shared_mutex:250
condition_variable _Write_queue
Definition: shared_mutex:250
bool _Writing
Definition: shared_mutex:252
_Read_cnt_t _Readers
Definition: shared_mutex:251
shared_timed_mutex::~shared_timed_mutex |
( |
| ) |
|
|
inline |
template<class _Time >
bool shared_timed_mutex::_Try_lock_shared_until |
( |
_Time |
_Abs_time | ) |
|
|
inline |
203 auto _Can_acquire = [
this] {
mutex _Mymtx
Definition: shared_mutex:249
condition_variable _Write_queue
Definition: shared_mutex:250
bool _Writing
Definition: shared_mutex:252
static constexpr _Read_cnt_t _Max_readers
Definition: shared_mutex:92
_Cv_status wait_until(unique_lock< mutex > &_Lck, const chrono::time_point< _Clock, _Duration > &_Abs_time)
Definition: mutex:601
_Read_cnt_t _Readers
Definition: shared_mutex:251
void shared_timed_mutex::lock |
( |
| ) |
|
|
inline |
mutex _Mymtx
Definition: shared_mutex:249
condition_variable _Read_queue
Definition: shared_mutex:250
condition_variable _Write_queue
Definition: shared_mutex:250
bool _Writing
Definition: shared_mutex:252
void wait(unique_lock< mutex > &_Lck)
Definition: mutex:564
_Read_cnt_t _Readers
Definition: shared_mutex:251
void shared_timed_mutex::lock_shared |
( |
| ) |
|
|
inline |
mutex _Mymtx
Definition: shared_mutex:249
condition_variable _Write_queue
Definition: shared_mutex:250
bool _Writing
Definition: shared_mutex:252
void wait(unique_lock< mutex > &_Lck)
Definition: mutex:564
static constexpr _Read_cnt_t _Max_readers
Definition: shared_mutex:92
_Read_cnt_t _Readers
Definition: shared_mutex:251
bool shared_timed_mutex::try_lock |
( |
| ) |
|
|
inline |
mutex _Mymtx
Definition: shared_mutex:249
bool _Writing
Definition: shared_mutex:252
_Read_cnt_t _Readers
Definition: shared_mutex:251
template<class _Rep , class _Period >
bool try_lock_until(const chrono::time_point< _Clock, _Duration > &_Abs_time)
Definition: shared_mutex:137
static time_point now() _NOEXCEPT
Definition: chrono:1001
bool shared_timed_mutex::try_lock_shared |
( |
| ) |
|
|
inline |
mutex _Mymtx
Definition: shared_mutex:249
bool _Writing
Definition: shared_mutex:252
static constexpr _Read_cnt_t _Max_readers
Definition: shared_mutex:92
_Read_cnt_t _Readers
Definition: shared_mutex:251
template<class _Rep , class _Period >
bool try_lock_shared_until(const chrono::time_point< _Clock, _Duration > &_Abs_time)
Definition: shared_mutex:217
static time_point now() _NOEXCEPT
Definition: chrono:1001
template<class _Clock , class _Duration >
bool _Try_lock_shared_until(_Time _Abs_time)
Definition: shared_mutex:201
bool shared_timed_mutex::try_lock_shared_until |
( |
const xtime * |
_Abs_time | ) |
|
|
inline |
bool _Try_lock_shared_until(_Time _Abs_time)
Definition: shared_mutex:201
template<class _Clock , class _Duration >
140 auto _Not_writing = [
this] {
return (!
_Writing); };
141 auto _Zero_readers = [
this] {
return (
_Readers == 0); };
mutex _Mymtx
Definition: shared_mutex:249
condition_variable _Read_queue
Definition: shared_mutex:250
void notify_all() _NOEXCEPT
Definition: mutex:559
condition_variable _Write_queue
Definition: shared_mutex:250
bool _Writing
Definition: shared_mutex:252
_Cv_status wait_until(unique_lock< mutex > &_Lck, const chrono::time_point< _Clock, _Duration > &_Abs_time)
Definition: mutex:601
_Read_cnt_t _Readers
Definition: shared_mutex:251
void shared_timed_mutex::unlock |
( |
| ) |
|
|
inline |
mutex _Mymtx
Definition: shared_mutex:249
void notify_all() _NOEXCEPT
Definition: mutex:559
condition_variable _Write_queue
Definition: shared_mutex:250
bool _Writing
Definition: shared_mutex:252
void shared_timed_mutex::unlock_shared |
( |
| ) |
|
|
inline |
240 if (_Local_writing && _Local_readers == 0)
242 else if (!_Local_writing && _Local_readers ==
_Max_readers - 1)
void notify_one() _NOEXCEPT
Definition: mutex:554
mutex _Mymtx
Definition: shared_mutex:249
condition_variable _Read_queue
Definition: shared_mutex:250
void notify_all() _NOEXCEPT
Definition: mutex:559
condition_variable _Write_queue
Definition: shared_mutex:250
bool _Writing
Definition: shared_mutex:252
unsigned int _Read_cnt_t
Definition: shared_mutex:91
static constexpr _Read_cnt_t _Max_readers
Definition: shared_mutex:92
_Read_cnt_t _Readers
Definition: shared_mutex:251
mutex shared_timed_mutex::_Mymtx |
|
private |
bool shared_timed_mutex::_Writing |
|
private |
The documentation for this class was generated from the following file: