Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
crl::multisense::details::utility::Semaphore Class Reference

#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
 

Detailed Description

Definition at line 200 of file linux/Thread.hh.

Member Typedef Documentation

typedef int32_t aligned_int32_t crl::multisense::details::utility::Semaphore::__attribute__((aligned(4)))
private

Definition at line 314 of file linux/Thread.hh.

Constructor & Destructor Documentation

crl::multisense::details::utility::Semaphore::Semaphore ( std::size_t  max = 0)
inline

Definition at line 274 of file linux/Thread.hh.

crl::multisense::details::utility::Semaphore::~Semaphore ( )
inline

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.

crl::multisense::details::utility::Semaphore::~Semaphore ( )
inline

Definition at line 252 of file win32/Thread.hh.

Member Function Documentation

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)
inlineprivate

Definition at line 264 of file win32/Thread.hh.

int32_t crl::multisense::details::utility::Semaphore::wait_ ( const struct timespec *  tsP = NULL)
inlineprivate

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.

Member Data Documentation

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.


The documentation for this class was generated from the following file:


multisense_lib
Author(s):
autogenerated on Sat Apr 6 2019 02:16:46