Clipper
Public Member Functions | Protected Attributes | List of all members
clipper::Mutex Class Reference

Mutex class: used for locking and unlocking shared resources. More...

#include <clipper_thread.h>

Public Member Functions

 Mutex ()
 constructor: create the mutex
 
 ~Mutex ()
 destructor: destroy the mutex
 
void lock ()
 lock the mutex
 
void unlock ()
 unlock the mutex
 

Protected Attributes

CLIPPER_MUTEX_TYPE mutex
 

Detailed Description

Mutex class: used for locking and unlocking shared resources.

Create a mutex for any sharted resource, i.e. non-stack object used by a multi-threaded program. The lock and unlock methods lock that resource. Recursive locks are not allowed.


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