#include <thread.hpp>

Public Types | |
| enum | WAIT_TIMEOUT_RESULT { WAIT_OK, WAIT_TIMED_OUT, WAIT_ERROR } |
Public Member Functions | |
| condition () | |
| ~condition () | |
| bool | wait (const mutex &m) |
| WAIT_TIMEOUT_RESULT | wait_timeout (const mutex &m, unsigned int timeout) |
| bool | notify_one () |
| bool | notify_all () |
Private Attributes | |
| SDL_cond *const | cond_ |
Definition at line 141 of file thread.hpp.
| enum threading::condition::WAIT_TIMEOUT_RESULT |
| Enumerator | |
|---|---|
| WAIT_OK | |
| WAIT_TIMED_OUT | |
| WAIT_ERROR | |
Definition at line 165 of file thread.hpp.
| threading::condition::condition | ( | ) |
Definition at line 100 of file thread.cpp.
| threading::condition::~condition | ( | ) |
Definition at line 103 of file thread.cpp.
References cond_.
| bool threading::condition::notify_all | ( | ) |
Definition at line 135 of file thread.cpp.
Referenced by network_worker_pool::manager::~manager().
| bool threading::condition::notify_one | ( | ) |
Definition at line 125 of file thread.cpp.
Referenced by threading::async_operation::notify_finished(), network_worker_pool::queue_buffer(), and network_worker_pool::receive_data().
| bool threading::condition::wait | ( | const mutex & | m | ) |
Definition at line 108 of file thread.cpp.
References cond_, and threading::mutex::m_.
| condition::WAIT_TIMEOUT_RESULT threading::condition::wait_timeout | ( | const mutex & | m, |
| unsigned int | timeout | ||
| ) |
Definition at line 113 of file thread.cpp.
References cond_, ERR_G, threading::mutex::m_, WAIT_ERROR, WAIT_OK, and WAIT_TIMED_OUT.
Referenced by threading::async_operation::execute().
|
private |
Definition at line 190 of file thread.hpp.
Referenced by notify_all(), notify_one(), wait(), wait_timeout(), and ~condition().
1.8.8