Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | Class Members | Related Pages

SigCX::Threads::Mutex Class Reference
[Threading]

Mutual Exclusion class. More...

#include <thread.h>

List of all members.

Public Member Functions

 Mutex ()
void lock ()
bool trylock ()
void unlock ()


Detailed Description

Mutual Exclusion class.

A class representing a mutual exclusion.


Constructor & Destructor Documentation

SigCX::Threads::Mutex::Mutex  ) 
 

Constructor.

The mutex is initially unlocked.


Member Function Documentation

void SigCX::Threads::Mutex::lock  ) 
 

Lock the mutex.

This blocks until the mutex is unlocked, if it is already locked.

bool SigCX::Threads::Mutex::trylock  ) 
 

Try to lock the mutex.

Returns:
true, if the operation was successfull, false, if the mutex was already locked.

void SigCX::Threads::Mutex::unlock  ) 
 

Unlock the mutex.


The documentation for this class was generated from the following file:
Generated on Sun Apr 10 18:35:43 2005 for SigCX - SigC++ Extras by  doxygen 1.4.2