MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / unlock

Method unlock

physx/source/foundation/src/windows/PsWindowsMutex.cpp:86–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void MutexImpl::unlock()
87{
88#if PX_DEBUG
89 // ensure we are already holding the lock
90 if(getMutex(this)->mOwner != Thread::getId())
91 {
92 shdfnd::getFoundation().error(PxErrorCode::eINVALID_OPERATION, __FILE__, __LINE__,
93 "Mutex must be unlocked only by thread that has already acquired lock");
94 return;
95 }
96
97#endif
98
99 LeaveCriticalSection(&getMutex(this)->mLock);
100}
101
102uint32_t MutexImpl::getSize()
103{

Callers 2

lockReaderMethod · 0.45
unlockWriterMethod · 0.45

Calls 2

errorMethod · 0.80
getMutexFunction · 0.70

Tested by

no test coverage detected