Functions

AcsBulkdata::Pthread::Semaphore Namespace Reference

Functions

bool lock (const char *desc, sem_t &s, const ACS::TimeInterval &to, bool logTimeout=false)
bool post (const char *desc, sem_t &s)

Detailed Description

Semaphore functions.


Function Documentation

bool AcsBulkdata::Pthread::Semaphore::lock ( const char *  desc,
sem_t &  s,
const ACS::TimeInterval &  to,
bool  logTimeout = false 
)

Helper class to wait with timeout on a posix semaphore.

bool AcsBulkdata::Pthread::Semaphore::post ( const char *  desc,
sem_t &  s 
)

Helper function to give a posix semaphore. If this function fails (return false) means that something major has broken down.