#include <condition_variable>
|
| | condition_variable_any () |
| |
| | condition_variable_any (const condition_variable_any &)=delete |
| |
| | ~condition_variable_any () |
| |
| void | notify_all () noexcept |
| |
| void | notify_one () noexcept |
| |
| condition_variable_any & | operator= (const condition_variable_any &)=delete |
| |
| template<class Lock_T > |
| void | wait (Lock_T &lock) |
| |
| template<class Lock_T , class Predicate_T > |
| void | wait (Lock_T &lock, Predicate_T pred) |
| |
| template<class Lock_T , class Rep_T , class Period_T > |
| cv_status | wait_for (Lock_T &lock, const std::chrono::duration< Rep_T, Period_T > &rel_time) |
| |
| template<class Lock_T , class Rep_T , class Period_T , class Predicate_T > |
| bool | wait_for (Lock_T &lock, const std::chrono::duration< Rep_T, Period_T > &rel_time, Predicate_T pred) |
| |
| template<class Lock_T , class Clock_T , class Duration_T > |
| cv_status | wait_until (Lock_T &lock, const std::chrono::time_point< Clock_T, Duration_T > &abs_time) |
| |
| template<class Lock_T , class Clock_T , class Duration_T , class Predicate_T > |
| bool | wait_until (Lock_T &lock, const std::chrono::time_point< Clock_T, Duration_T > &abs_time, Predicate_T pred) |
| |
Definition at line 141 of file condition_variable.
◆ Native_clock
◆ condition_variable_any() [1/2]
| os::estd::condition_variable_any::condition_variable_any |
( |
| ) |
|
|
inline |
Definition at line 318 of file condition_variable.
320 mx_{ std::make_shared<mutex> () }
321 {
322 }
std::shared_ptr< mutex > mx_
◆ ~condition_variable_any()
| os::estd::condition_variable_any::~condition_variable_any |
( |
| ) |
|
|
inline |
◆ condition_variable_any() [2/2]
◆ notify_all()
| void os::estd::condition_variable_any::notify_all |
( |
| ) |
|
|
inlinenoexcept |
◆ notify_one()
| void os::estd::condition_variable_any::notify_one |
( |
| ) |
|
|
inlinenoexcept |
◆ operator=()
◆ wait() [1/2]
template<class Lock_T >
| void os::estd::condition_variable_any::wait |
( |
Lock_T & |
lock | ) |
|
Definition at line 359 of file condition_variable.
360 {
361 std::shared_ptr<mutex> mx =
mx_;
362 std::unique_lock<mutex> lk (*mx);
364 std::unique_ptr<Lock_T, __lock_external> lxx (&lock);
365 std::lock_guard<std::unique_lock<mutex>> lx (lk, std::adopt_lock);
366
368
369
370 }
void wait(std::unique_lock< mutex > &lock)
References cv_, mx_, and os::estd::condition_variable::wait().
Referenced by wait().
◆ wait() [2/2]
template<class Lock_T , class Predicate_T >
| void os::estd::condition_variable_any::wait |
( |
Lock_T & |
lock, |
|
|
Predicate_T |
pred |
|
) |
| |
|
inline |
◆ wait_for() [1/2]
template<class Lock_T , class Rep_T , class Period_T >
| cv_status os::estd::condition_variable_any::wait_for |
( |
Lock_T & |
lock, |
|
|
const std::chrono::duration< Rep_T, Period_T > & |
rel_time |
|
) |
| |
|
inline |
◆ wait_for() [2/2]
template<class Lock_T , class Rep_T , class Period_T , class Predicate_T >
| bool os::estd::condition_variable_any::wait_for |
( |
Lock_T & |
lock, |
|
|
const std::chrono::duration< Rep_T, Period_T > & |
rel_time, |
|
|
Predicate_T |
pred |
|
) |
| |
|
inline |
◆ wait_until() [1/2]
template<class Lock_T , class Clock_T , class Duration_T >
| cv_status os::estd::condition_variable_any::wait_until |
( |
Lock_T & |
lock, |
|
|
const std::chrono::time_point< Clock_T, Duration_T > & |
abs_time |
|
) |
| |
Definition at line 382 of file condition_variable.
385 {
386 std::shared_ptr<mutex> mx =
mx_;
387 std::unique_lock<mutex> lk (*mx);
389 std::unique_ptr<Lock_T, __lock_external> lxx (&lock);
390 std::lock_guard<std::unique_lock<mutex>> lx (lk, std::adopt_lock);
391
393
394
395 }
cv_status wait_until(std::unique_lock< mutex > &lock, const std::chrono::time_point< Clock_T, Duration_T > &abs_time)
References cv_, mx_, and os::estd::condition_variable::wait_until().
Referenced by wait_for(), wait_for(), and wait_until().
◆ wait_until() [2/2]
template<class Lock_T , class Clock_T , class Duration_T , class Predicate_T >
| bool os::estd::condition_variable_any::wait_until |
( |
Lock_T & |
lock, |
|
|
const std::chrono::time_point< Clock_T, Duration_T > & |
abs_time, |
|
|
Predicate_T |
pred |
|
) |
| |
|
inline |
◆ cv_
◆ mx_
| std::shared_ptr<mutex> os::estd::condition_variable_any::mx_ |
|
protected |
The documentation for this class was generated from the following file: