NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CSemaphore Class Reference

Search Toolkit Book for CSemaphore

CSemaphore –. More...

#include <corelib/ncbimtx.hpp>

+ Collaboration diagram for CSemaphore:

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...
 
CSemaphoreoperator= (const CSemaphore &)
 Private assignment operator to disallow assignment. More...
 

Private Attributes

struct SSemaphorem_Sem
 System-specific semaphore data. More...
 

Detailed Description

CSemaphore –.

Implement the semantics of an application-wide semaphore.

Definition at line 1374 of file ncbimtx.hpp.


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:20 2024 by modify_doxy.py rev. 669887