src/engine/mutex.h File Reference
#include <pthread.h>
Go to the source code of this file.
Define Documentation
| #define MUTEX_LOCK |
( |
m |
|
) |
m.Lock(); |
| #define MUTEX_UNLOCK |
( |
m |
|
) |
(m).Unlock(); |
Enumeration Type Documentation
Mutex type.
- Enumerator:
-
| NORMAL_MUTEX |
Normal mutex : the mutex needs to be in an unlocked state to be locked. When compiled with the DEBUG flag, NORMAL_MUTEX generates an error when a thread tries to lock it twice. When compiled without the DEBUG flag, NORMAL_MUTEX generate a dead lock when a thread tries to lock it twice. |
| RECURSIVE_MUTEX |
Recursive mutex : the mutex can be locked multiple time be the same thread. |
Definition at line 28 of file mutex.h.