#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::Semaphore | ( | int | val = 0 | ) |
References semaphore, and UNUSED.
Referenced by DISABLE_CLASS_COPY().
| Semaphore::DISABLE_CLASS_COPY | ( | Semaphore | ) |
| void Semaphore::post | ( | unsigned int | num = 1 | ) |
References semaphore, and UNUSED.
Referenced by AsyncEngine::~AsyncEngine(), UpdateThread::deferUpdate(), DISABLE_CLASS_COPY(), MutexedQueue< MeshUpdateResult >::push_back(), MutexedQueue< MeshUpdateResult >::push_back(), AsyncEngine::queueAsyncJob(), UpdateThread::stop(), TestThreading::testAtomicSemaphoreThread(), and con::ConnectionSendThread::Trigger().
| void Semaphore::wait | ( | ) |
References semaphore, and UNUSED.
Referenced by DISABLE_CLASS_COPY(), AsyncEngine::getJob(), MutexedQueue< MeshUpdateResult >::pop_back(), MutexedQueue< MeshUpdateResult >::pop_backNoEx(), MutexedQueue< MeshUpdateResult >::pop_backNoEx(), MutexedQueue< MeshUpdateResult >::pop_front(), MutexedQueue< MeshUpdateResult >::pop_frontNoEx(), MutexedQueue< MeshUpdateResult >::pop_frontNoEx(), AtomicTestThread::run(), con::ConnectionSendThread::run(), and UpdateThread::run().
| bool Semaphore::wait | ( | unsigned int | time_ms | ) |
References semaphore.
|
private |
Referenced by Semaphore(), ~Semaphore(), DISABLE_CLASS_COPY(), post(), wait(), and wait().