xoreos
0.0.5
|
A condition. More...
#include <mutex.h>
Public Member Functions | |
Condition () | |
Condition (Mutex &mutex) | |
~Condition () | |
bool | wait (uint32 timeout=0) |
void | signal () |
Private Attributes | |
bool | _ownMutex |
Mutex * | _mutex |
SDL_cond * | _condition |
Common::Condition::Condition | ( | ) |
Definition at line 100 of file mutex.cpp.
References _condition, and _mutex.
Common::Condition::Condition | ( | Mutex & | mutex | ) |
Definition at line 108 of file mutex.cpp.
References _condition.
Common::Condition::~Condition | ( | ) |
Definition at line 114 of file mutex.cpp.
References _condition, _mutex, and _ownMutex.
void Common::Condition::signal | ( | ) |
Definition at line 138 of file mutex.cpp.
References _condition.
Referenced by Events::EventsManager::runMainLoop(), and Sound::SoundManager::triggerUpdate().
bool Common::Condition::wait | ( | uint32 | timeout = 0 | ) |
Definition at line 121 of file mutex.cpp.
References _condition, Common::Mutex::_mutex, _mutex, _ownMutex, Common::Mutex::lock(), and Common::Mutex::unlock().
Referenced by Events::EventsManager::pushEvent(), and Sound::SoundManager::threadMethod().
|
private |
Definition at line 96 of file mutex.h.
Referenced by Condition(), signal(), wait(), and ~Condition().
|
private |
Definition at line 95 of file mutex.h.
Referenced by Condition(), wait(), and ~Condition().
|
private |
Definition at line 93 of file mutex.h.
Referenced by wait(), and ~Condition().