| 12 | namespace embree |
| 13 | { |
| 14 | MutexSys::MutexSys() { mutex = new CRITICAL_SECTION; InitializeCriticalSection((CRITICAL_SECTION*)mutex); } |
| 15 | MutexSys::~MutexSys() { DeleteCriticalSection((CRITICAL_SECTION*)mutex); delete (CRITICAL_SECTION*)mutex; } |
| 16 | void MutexSys::lock() { EnterCriticalSection((CRITICAL_SECTION*)mutex); } |
| 17 | bool MutexSys::try_lock() { return TryEnterCriticalSection((CRITICAL_SECTION*)mutex) != 0; } |
nothing calls this directly
no outgoing calls
no test coverage detected