NCBI C++ ToolKit
|
Search Toolkit Book for CSemaphore
#include <corelib/ncbimtx.hpp>
Public Member Functions | |
CSemaphore (unsigned int init_count, unsigned int max_count) | |
Constructor. More... | |
~CSemaphore (void) | |
Destructor. More... | |
void | Wait (void) |
Wait on semaphore. More... | |
bool | TryWait (unsigned int timeout_sec=0, unsigned int timeout_nsec=0) |
Timed wait. More... | |
bool | TryWait (const CTimeout &timeout) |
Timed wait. Wait time specified by CTimeout. More... | |
void | Post (unsigned int count=1) |
Increment the semaphore by "count". More... | |
Private Member Functions | |
CSemaphore (const CSemaphore &) | |
Private copy constructor to disallow initialization. More... | |
CSemaphore & | operator= (const CSemaphore &) |
Private assignment operator to disallow assignment. More... | |
Private Attributes | |
struct SSemaphore * | m_Sem |
System-specific semaphore data. More... | |
CSemaphore –.
Implement the semantics of an application-wide semaphore.
Definition at line 1374 of file ncbimtx.hpp.