Cern
LibTmsApi 2.3.0

Sempahore class. More...

#include <BSema.h>

Public Member Functions

 BSema (int value=0)
 
 BSema (const BSema &sema)
 
 ~BSema ()
 
int post ()
 Post condition.
 
int wait ()
 Wait for contition.
 
int timedWait (int timeUs)
 Wait for condition with timeout.
 
int tryWait ()
 Test for the condition.
 
int getValue () const
 
BSemaoperator= (const BSema &sema)
 

Private Attributes

sem_t osema
 

Detailed Description

Sempahore class.

Constructor & Destructor Documentation

◆ BSema() [1/2]

BSema::BSema ( int  value = 0)

◆ BSema() [2/2]

BSema::BSema ( const BSema sema)

◆ ~BSema()

BSema::~BSema ( )

Member Function Documentation

◆ getValue()

int BSema::getValue ( ) const

◆ operator=()

BSema & BSema::operator= ( const BSema sema)

◆ post()

int BSema::post ( )

Post condition.

◆ timedWait()

int BSema::timedWait ( int  timeUs)

Wait for condition with timeout.

◆ tryWait()

int BSema::tryWait ( )

Test for the condition.

◆ wait()

int BSema::wait ( )

Wait for contition.

Member Data Documentation

◆ osema

sem_t BSema::osema
private

The documentation for this class was generated from the following files:
  • /src/cern/tms/tms/beam/libBeam/BSema.h
  • /src/cern/tms/tms/beam/libBeam/BSema.cpp