#include <mutex.h>
Windows: uses Mutex, cannot be shared among processes. Linux: uses PThread POSIX Mutex, cannot be shared among processes.
CUnfairMutex m; m.enter (); // do critical stuffs m.leave (); *
Nevrax France
Definition at line 79 of file mutex.h.
Public Member Functions | |
CUnfairMutex (const std::string &name) | |
CUnfairMutex () | |
Constructor. | |
void | enter () |
Enter the critical section. | |
void | leave () |
Leave the critical section. | |
~CUnfairMutex () | |
Destructor. |
|
Constructor.
|
|
|
|
Destructor.
|
|
Enter the critical section.
|
|
Leave the critical section.
|