MCPcopy Create free account
hub / github.com/RenderKit/embree / try_lock

Method try_lock

common/sys/mutex.cpp:17–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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; }
18 void MutexSys::unlock() { LeaveCriticalSection((CRITICAL_SECTION*)mutex); }
19}
20#endif

Callers 4

try_write_lockFunction · 0.45
allocNextSegmentMethod · 0.45
lookupFunction · 0.45
commit_internalMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected