#include <mutex.h>
Nevrax France
Definition at line 404 of file mutex.h.
Public Member Functions | |
bool | createByKey (int key, bool createNew) |
Create (with createNew to true) or access an existing mutex (created by another process) with a specific key. Returns false if it failed. | |
CSharedMutex () | |
Constructor (does not create the mutex, see createByName()/createByKey()). | |
void | destroy () |
Destroy the mutex. | |
void | enter () |
Enter the critical section. | |
void | leave () |
Leave the critical section. | |
Private Attributes | |
int | _SemId |
The semaphore id. |
|
Constructor (does not create the mutex, see createByName()/createByKey()).
|
|
Create (with createNew to true) or access an existing mutex (created by another process) with a specific key. Returns false if it failed.
|
|
Destroy the mutex.
|
|
Enter the critical section.
|
|
Leave the critical section.
|
|
The semaphore id.
|