Fast mutex implementation (not fairly) The mutex ARE NOT recursive (ie don't call enter() several times on the same mutex from the same thread without having called leave()) ; The threads ARE NOT woken-up in the same order as they were put to sleep.
The threads ARE NOT woken-up using signals but using Sleep(). This mutex works but is not optimal for multiprocessors because if the mutex is locked, next enter will be sleeped without waiting a little.
Implementation notes:
- Implementated under WIN32
- Other OS use CMutex
-
Author:
-
Cyril 'Hulud' Corvazier , Nevrax France
-
Date:
-
2000
Definition at line 194 of file mutex.h. |