#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 Member Functions | |
| condition (const condition &) | |
| void | operator= (const condition &) |
Private Attributes | |
| SDL_cond *const | cond_ |
Definition at line 137 of file thread.hpp.
Definition at line 160 of file thread.hpp.
| threading::condition::condition | ( | ) |
Definition at line 101 of file thread.cpp.
| threading::condition::~condition | ( | ) |
Definition at line 104 of file thread.cpp.
References cond_.
| threading::condition::condition | ( | const condition & | ) | [private] |
| bool threading::condition::notify_all | ( | ) |
Definition at line 136 of file thread.cpp.
Referenced by network_worker_pool::manager::~manager().

| bool threading::condition::notify_one | ( | ) |
Definition at line 126 of file thread.cpp.
Referenced by threading::async_operation::notify_finished(), and network_worker_pool::queue_buffer().

| void threading::condition::operator= | ( | const condition & | ) | [private] |
| bool threading::condition::wait | ( | const mutex & | m | ) |
Definition at line 109 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 114 of file thread.cpp.
References cond_, ERR_G, and threading::mutex::m_.
Referenced by threading::async_operation::execute().

SDL_cond* const threading::condition::cond_ [private] |
Definition at line 187 of file thread.hpp.
Referenced by notify_all(), notify_one(), wait(), wait_timeout(), and ~condition().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:26:11 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |