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 ()
 
bool clear ()
 
int32_t count ()
 
int32_t count ()
 
bool decrement ()
 
bool decrement ()
 
bool decrement ()
 
bool increment ()
 
bool increment ()
 
bool increment ()
 
bool post ()
 
bool post ()
 
bool post ()
 
 Semaphore (LONG max=0)
 
 Semaphore (std::size_t max=0)
 
 Semaphore (std::size_t max=0)
 
bool timedWait (const double &timeout)
 
bool timedWait (const double &timeout)
 
bool timedWait (const double &timeout)
 
bool wait ()
 
bool wait ()
 
bool wait ()
 
int32_t waiters ()
 
int32_t waiters ()
 
int32_t waiters ()
 
 ~Semaphore ()
 
 ~Semaphore ()
 
 ~Semaphore ()
 

Private Types

typedef int32_t aligned_int32_t __attribute__((aligned(4)))
 
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)
 
int32_t wait_ (const struct timespec *tsP=NULL)
 

Private Attributes

aligned_int32_t m_avail
 
HANDLE m_handle
 
const std::size_t m_maximum
 
semaphore_t m_sem
 
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.

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

Definition at line 326 of file macos/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 280 of file macos/Thread.hh.

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

Definition at line 288 of file macos/Thread.hh.

crl::multisense::details::utility::Semaphore::Semaphore ( LONG  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.

bool crl::multisense::details::utility::Semaphore::clear ( )
inline

Definition at line 268 of file macos/Thread.hh.

int32_t crl::multisense::details::utility::Semaphore::count ( )
inline

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

int32_t crl::multisense::details::utility::Semaphore::count ( )
inline

Definition at line 275 of file macos/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::decrement ( )
inline

Definition at line 277 of file macos/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::increment ( )
inline

Definition at line 278 of file macos/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::post ( )
inline

Definition at line 243 of file macos/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::timedWait ( const double &  timeout)
inline

Definition at line 219 of file macos/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.

bool crl::multisense::details::utility::Semaphore::wait ( )
inline

Definition at line 209 of file macos/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::wait_ ( const struct timespec *  tsP = NULL)
inlineprivate

Definition at line 298 of file macos/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.

int32_t crl::multisense::details::utility::Semaphore::waiters ( )
inline

Definition at line 276 of file macos/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.

semaphore_t crl::multisense::details::utility::Semaphore::m_sem
private

Definition at line 331 of file macos/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 Sun Mar 14 2021 02:34:50