xoreos
0.0.5
|
A semaphore . More...
#include <mutex.h>
Public Member Functions | |
Semaphore (uint value=0) | |
~Semaphore () | |
bool | lock (uint32 timeout=0) |
bool | lockTry () |
void | unlock () |
uint32 | getValue () |
Private Attributes | |
SDL_sem * | _semaphore |
Common::Semaphore::Semaphore | ( | uint | value = 0 | ) |
Definition at line 52 of file mutex.cpp.
References _semaphore.
Common::Semaphore::~Semaphore | ( | ) |
Definition at line 56 of file mutex.cpp.
References _semaphore.
uint32 Common::Semaphore::getValue | ( | ) |
Definition at line 79 of file mutex.cpp.
References _semaphore.
bool Common::Semaphore::lock | ( | uint32 | timeout = 0 | ) |
Definition at line 60 of file mutex.cpp.
References _semaphore.
Referenced by Graphics::Aurora::AnimationChannel::addDefaultAnimation(), Graphics::Aurora::AnimationChannel::clearDefaultAnimations(), Graphics::Aurora::AnimationThread::flush(), Graphics::Aurora::AnimationChannel::manageAnimations(), Graphics::Aurora::AnimationThread::pause(), Graphics::Aurora::AnimationChannel::playAnimation(), Graphics::Aurora::AnimationChannel::playDefaultAnimation(), Graphics::Aurora::AnimationThread::registerModel(), Common::StackLock::StackLock(), Graphics::Aurora::AnimationThread::threadMethod(), and Graphics::Aurora::AnimationThread::unregisterModel().
bool Common::Semaphore::lockTry | ( | ) |
Definition at line 71 of file mutex.cpp.
References _semaphore.
Referenced by Graphics::Aurora::AnimationThread::threadMethod().
void Common::Semaphore::unlock | ( | ) |
Definition at line 75 of file mutex.cpp.
References _semaphore.
Referenced by Graphics::Aurora::AnimationChannel::addDefaultAnimation(), Graphics::Aurora::AnimationChannel::clearDefaultAnimations(), Graphics::Aurora::AnimationThread::flush(), Graphics::Aurora::AnimationChannel::manageAnimations(), Graphics::Aurora::AnimationThread::pause(), Graphics::Aurora::AnimationChannel::playAnimation(), Graphics::Aurora::AnimationChannel::playDefaultAnimation(), Graphics::Aurora::AnimationThread::registerModel(), Events::Request::signalReply(), Graphics::Aurora::AnimationThread::threadMethod(), Graphics::Aurora::AnimationThread::unregisterModel(), and Common::StackLock::~StackLock().
|
private |
Definition at line 67 of file mutex.h.
Referenced by getValue(), lock(), lockTry(), Semaphore(), unlock(), and ~Semaphore().