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:10 2002 for NMSTL