A deprecated condition.
More...
#include <conditn.hxx>
A deprecated condition.
- Deprecated:
- use C++11's std::condition_variable instead for a more robust and helpful condition.
Warning: the Condition abstraction is inadequate for any situation where there may be multiple threads setting, waiting, and resetting the same condition. It can only be used to synchronise interactions between two threads cf. lost wakeups in: http://www.cs.wustl.edu/~schmidt/win32-cv-1.html
◆ Result
Enumerator |
---|
result_ok | |
result_error | |
result_timeout | |
◆ Condition()
osl::Condition::Condition |
( |
| ) |
|
|
inline |
Create a condition.
- Deprecated:
- use C++11's std::condition_variable instead for a more robust and helpful condition.
◆ ~Condition()
osl::Condition::~Condition |
( |
| ) |
|
|
inline |
◆ check()
bool osl::Condition::check |
( |
| ) |
|
|
inline |
Checks if the condition is set without blocking.
◆ reset()
void osl::Condition::reset |
( |
| ) |
|
|
inline |
◆ set()
void osl::Condition::set |
( |
| ) |
|
|
inline |
◆ wait()
Blocks the calling thread until condition is set.
The documentation for this class was generated from the following file: