MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / unlock

Method unlock

deps/physx/physx/source/foundation/src/unix/PsUnixMutex.cpp:100–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void MutexImpl::unlock()
101{
102#if PX_DEBUG
103 if(getMutex(this)->owner != Thread::getId())
104 {
105 shdfnd::getFoundation().error(PxErrorCode::eINVALID_OPERATION, __FILE__, __LINE__,
106 "Mutex must be unlocked only by thread that has already acquired lock");
107 return;
108 }
109#endif
110
111 int err = pthread_mutex_unlock(&getMutex(this)->lock);
112 PX_ASSERT(!err);
113 PX_UNUSED(err);
114}
115
116uint32_t MutexImpl::getSize()
117{

Callers 2

lockReaderMethod · 0.45
unlockWriterMethod · 0.45

Calls 3

PX_UNUSEDFunction · 0.85
getMutexFunction · 0.70
errorMethod · 0.45

Tested by

no test coverage detected