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 Mon Sep 10 06:27:37 2007 for SigCX - SigC++ Extras by  doxygen 1.5.3