Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Mutex Class Reference

Inherited by seda_stage_base [protected].

List of all members.


Detailed Description

A non-recusive mutual-exclusion lock.

You should never call lock() or unlock() on a Mutex directly; instead use the Guard class or the locking(x) macro:

 Mutex my_mutex;

 int my_function()
 {
     locking(my_mutex) {
         ...
     }
 }


Public Methods

 Mutex ()
 Constructor.

 ~Mutex ()
 Destructor.

void lock ()
 Acquires the lock.

void unlock ()
 Releases the lock.


Friends

class Condition


Constructor & Destructor Documentation

Mutex::Mutex  
 

Constructor.

Mutex::~Mutex  
 

Destructor.


Member Function Documentation

void Mutex::lock  
 

Acquires the lock.

void Mutex::unlock  
 

Releases the lock.


Friends And Related Function Documentation

friend class Condition [friend]
 


The documentation for this class was generated from the following file:
Generated on Fri Dec 20 13:35:11 2002 for NMSTL