Main Page | Class Hierarchy | Class List | File List | Class Members

Mutex::GlobalData Class Reference

#include <Mutex.h>

List of all members.

Public Member Functions

 GlobalData ()
 Create the synchronization object.
 ~GlobalData ()
 Destroy the synchronization object.
void lock ()
 Lock the system-level mutex.
void unlock ()
 Unlock the system level mutex.

Friends

class Mutex


Detailed Description

This class is a simple wrapper arount the system-level synchronization primitives and encapsulates a global object that a Mutex object can lock/unlock. In order for several threads to be able to use it, this object has to be global, i.e. either a global variable, or one on the heap. I suppose it would be possible to use a local instance, making sure that all threads have access to it for as long as they need to, but that would be very bad programming practice and thus it is in some way discouraged by the mere name of the class.


The documentation for this class was generated from the following file:
Generated on Wed May 25 12:21:20 2005 for csp.kdevelop by  doxygen 1.3.9.1