#include <Thread.hh>
Public Member Functions | |
bool | clear () |
bool | clear () |
int32_t | count () |
bool | decrement () |
bool | decrement () |
bool | increment () |
bool | increment () |
bool | post () |
bool | post () |
Semaphore (std::size_t max=0) | |
Semaphore (std::size_t max=0) | |
bool | timedWait (const double &timeout) |
bool | timedWait (const double &timeout) |
bool | wait () |
bool | wait () |
int32_t | waiters () |
int32_t | waiters () |
~Semaphore () | |
~Semaphore () | |
Private Types | |
typedef int32_t aligned_int32_t | __attribute__ ((aligned(4))) |
Private Member Functions | |
int32_t | wait_ (DWORD ts=INFINITE) |
int32_t | wait_ (const struct timespec *tsP=NULL) |
Private Attributes | |
aligned_int32_t | m_avail |
HANDLE | m_handle |
const std::size_t | m_maximum |
LONG | m_waiters |
aligned_int32_t | m_waiters |
Definition at line 200 of file linux/Thread.hh.
typedef int32_t aligned_int32_t crl::multisense::details::utility::Semaphore::__attribute__((aligned(4))) [private] |
Definition at line 314 of file linux/Thread.hh.
crl::multisense::details::utility::Semaphore::Semaphore | ( | std::size_t | max = 0 | ) | [inline] |
Definition at line 274 of file linux/Thread.hh.
Definition at line 279 of file linux/Thread.hh.
crl::multisense::details::utility::Semaphore::Semaphore | ( | std::size_t | max = 0 | ) | [inline] |
Definition at line 244 of file win32/Thread.hh.
Definition at line 252 of file win32/Thread.hh.
bool crl::multisense::details::utility::Semaphore::clear | ( | ) | [inline] |
Definition at line 233 of file win32/Thread.hh.
bool crl::multisense::details::utility::Semaphore::clear | ( | ) | [inline] |
Definition at line 262 of file linux/Thread.hh.
int32_t crl::multisense::details::utility::Semaphore::count | ( | ) | [inline] |
Definition at line 269 of file linux/Thread.hh.
bool crl::multisense::details::utility::Semaphore::decrement | ( | ) | [inline] |
Definition at line 241 of file win32/Thread.hh.
bool crl::multisense::details::utility::Semaphore::decrement | ( | ) | [inline] |
Definition at line 271 of file linux/Thread.hh.
bool crl::multisense::details::utility::Semaphore::increment | ( | ) | [inline] |
Definition at line 242 of file win32/Thread.hh.
bool crl::multisense::details::utility::Semaphore::increment | ( | ) | [inline] |
Definition at line 272 of file linux/Thread.hh.
bool crl::multisense::details::utility::Semaphore::post | ( | ) | [inline] |
Definition at line 222 of file win32/Thread.hh.
bool crl::multisense::details::utility::Semaphore::post | ( | ) | [inline] |
Definition at line 242 of file linux/Thread.hh.
bool crl::multisense::details::utility::Semaphore::timedWait | ( | const double & | timeout | ) | [inline] |
Definition at line 202 of file win32/Thread.hh.
bool crl::multisense::details::utility::Semaphore::timedWait | ( | const double & | timeout | ) | [inline] |
Definition at line 218 of file linux/Thread.hh.
bool crl::multisense::details::utility::Semaphore::wait | ( | ) | [inline] |
Definition at line 192 of file win32/Thread.hh.
bool crl::multisense::details::utility::Semaphore::wait | ( | ) | [inline] |
Definition at line 208 of file linux/Thread.hh.
int32_t crl::multisense::details::utility::Semaphore::wait_ | ( | DWORD | ts = INFINITE | ) | [inline, private] |
Definition at line 264 of file win32/Thread.hh.
int32_t crl::multisense::details::utility::Semaphore::wait_ | ( | const struct timespec * | tsP = NULL | ) | [inline, private] |
Definition at line 287 of file linux/Thread.hh.
int32_t crl::multisense::details::utility::Semaphore::waiters | ( | ) | [inline] |
Definition at line 240 of file win32/Thread.hh.
int32_t crl::multisense::details::utility::Semaphore::waiters | ( | ) | [inline] |
Definition at line 270 of file linux/Thread.hh.
aligned_int32_t crl::multisense::details::utility::Semaphore::m_avail [private] |
Definition at line 317 of file linux/Thread.hh.
HANDLE crl::multisense::details::utility::Semaphore::m_handle [private] |
Definition at line 275 of file win32/Thread.hh.
const std::size_t crl::multisense::details::utility::Semaphore::m_maximum [private] |
Definition at line 316 of file linux/Thread.hh.
LONG crl::multisense::details::utility::Semaphore::m_waiters [private] |
Definition at line 278 of file win32/Thread.hh.
aligned_int32_t crl::multisense::details::utility::Semaphore::m_waiters [private] |
Definition at line 318 of file linux/Thread.hh.