#include <mutex.h>
Windows: uses Critical Section, cannot be shared among processes Linux: uses PThread (POSIX) semaphore, cannot be shared among processes
CUnfairMutex m; m.enter (); // do critical stuffs m.leave (); *
Nevrax France
CFairMutex m; m.enter (); // do critical stuffs m.leave (); *
Nevrax France
Definition at line 484 of file mutex.h.
Public Member Functions | |
CFairMutex (const std::string &name) | |
CFairMutex () | |
Constructor. | |
void | enter () |
void | leave () |
~CFairMutex () | |
Destructor. | |
Data Fields | |
std::string | Name |
|
Constructor.
|
|
|
|
Destructor.
|
|
|
|
|
|
|