Cern
LibTmsApi 2.3.0

Semaphore class. More...

#include <BSemaphore.h>

Public Member Functions

 BSemaphore ()
 
 BSemaphore (const BSemaphore &semaphore)
 
 ~BSemaphore ()
 
Bool wait (BTimeout timeoutUs=BTimeoutForever)
 Wait for the semaphore.
 
void set ()
 Set the semaphore.
 
int getValue () const
 
BSemaphoreoperator= (const BSemaphore &semaphore)
 

Private Attributes

sem_t osema
 

Detailed Description

Semaphore class.

Constructor & Destructor Documentation

◆ BSemaphore() [1/2]

BSemaphore::BSemaphore ( )

◆ BSemaphore() [2/2]

BSemaphore::BSemaphore ( const BSemaphore semaphore)

◆ ~BSemaphore()

BSemaphore::~BSemaphore ( )

Member Function Documentation

◆ getValue()

int BSemaphore::getValue ( ) const

◆ operator=()

BSemaphore & BSemaphore::operator= ( const BSemaphore semaphore)

◆ set()

void BSemaphore::set ( )

Set the semaphore.

◆ wait()

Bool BSemaphore::wait ( BTimeout  timeoutUs = BTimeoutForever)

Wait for the semaphore.

Member Data Documentation

◆ osema

sem_t BSemaphore::osema
private

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