#include <semaphore.h>
Public Member Functions | |
Semaphore (int val=0) | |
~Semaphore () | |
DISABLE_CLASS_COPY (Semaphore) | |
void | post (unsigned int num=1) |
void | wait () |
bool | wait (unsigned int time_ms) |
Private Attributes | |
sem_t | semaphore |
Semaphore::DISABLE_CLASS_COPY | ( | Semaphore | ) |
void Semaphore::post | ( | unsigned int | num = 1 | ) |
References semaphore, and UNUSED.
Referenced by AsyncEngine::~AsyncEngine(), UpdateThread::deferUpdate(), MutexedQueue< T >::push_back(), AsyncEngine::queueAsyncJob(), UpdateThread::stop(), TestThreading::testAtomicSemaphoreThread(), and con::ConnectionSendThread::Trigger().
void Semaphore::wait | ( | ) |
References semaphore, and UNUSED.
Referenced by AsyncEngine::getJob(), MutexedQueue< T >::pop_back(), MutexedQueue< T >::pop_backNoEx(), MutexedQueue< T >::pop_front(), MutexedQueue< T >::pop_frontNoEx(), con::ConnectionSendThread::run(), AtomicTestThread::run(), and UpdateThread::run().
bool Semaphore::wait | ( | unsigned int | time_ms | ) |
References semaphore.
|
private |
Referenced by Semaphore(), ~Semaphore(), post(), and wait().