deSemaphore Class Reference

Semaphore. More...

#include <deSemaphore.h>

List of all members.

Public Member Functions

Constructors and Destructors
 deSemaphore ()
 Creates a semaphore.
 ~deSemaphore ()
 Cleans the semaphore.
Management
void Wait ()
 Puts the thread to sleep waiting for the semaphore to get signaled.
void Signal ()
 Signals this semaphore waking up one or more threads.
void SignalAll ()
 Signals this semaphore waking up all threads.

Detailed Description

Semaphore.

Provides semaphore access support using a thin wrapper around the operating system specific threading semaphore.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

deSemaphore::deSemaphore (  )

Creates a semaphore.

deSemaphore::~deSemaphore (  )

Cleans the semaphore.


Member Function Documentation

void deSemaphore::Signal (  )

Signals this semaphore waking up one or more threads.

If no thread is waiting this call does nothing.

void deSemaphore::SignalAll (  )

Signals this semaphore waking up all threads.

If no thread is waiting this call does nothing.

void deSemaphore::Wait (  )

Puts the thread to sleep waiting for the semaphore to get signaled.

Returns once the signal arrives and this thread is chosen to wake up.


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