LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
Rhesus::Toolkit::Tasks::BinarySemaphore Class Reference

simple wrapper around semBLib for easier transition to linux More...

#include <BinarySemaphore.h>

Public Member Functions

 BinarySemaphore (UINT32 state)
 
void Give ()
 
void Take ()
 
void Take (int timeout)
 
void Flush ()
 

Detailed Description

simple wrapper around semBLib for easier transition to linux

Author
Varun Parthasarathy

Constructor & Destructor Documentation

BinarySemaphore::BinarySemaphore ( UINT32  state)
explicit
Parameters
stateinitial state of the semaphore

Member Function Documentation

void BinarySemaphore::Flush ( )

Flushes the semaphore

void BinarySemaphore::Give ( )

Gives the semaphore

void BinarySemaphore::Take ( )

Waits forever for a semaphore to be given, and takes it

void BinarySemaphore::Take ( int  timeout)

Waits until the timeout expires or a semaphore is given

Parameters
timeoutthe number of milliseconds to wait before continuing

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