cxxtools::Semaphore Class Reference

#include <cxxtools/semaphore.h>

Inheritance diagram for cxxtools::Semaphore:
cxxtools::NonCopyable

Public Member Functions

 Semaphore (unsigned int initial=0)
 Construct with initial count.
 ~Semaphore ()
 Destructor. Does not signal...
Semaphorewait ()
 Wait for the semaphore to become signaled.
bool tryWait ()
 Non-blocking wait.
Semaphorepost ()
 Signal the semaphore.

Friends

class SemaphoreImpl

Additional Inherited Members

- Private Member Functions inherited from cxxtools::NonCopyable
 NonCopyable ()

Constructor & Destructor Documentation

cxxtools::Semaphore::Semaphore ( unsigned int  initial = 0)

Construct with initial count.

cxxtools::Semaphore::~Semaphore ( )

Destructor. Does not signal...

Member Function Documentation

Semaphore& cxxtools::Semaphore::post ( )

Signal the semaphore.

bool cxxtools::Semaphore::tryWait ( )

Non-blocking wait.

Semaphore& cxxtools::Semaphore::wait ( )

Wait for the semaphore to become signaled.

Friends And Related Function Documentation

friend class SemaphoreImpl
friend

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