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

Method trylock

physx/source/foundation/src/unix/PsUnixMutex.cpp:90–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90bool MutexImpl::trylock()
91{
92 bool success = !pthread_mutex_trylock(&getMutex(this)->lock);
93#if PX_DEBUG
94 if(success)
95 getMutex(this)->owner = Thread::getId();
96#endif
97 return success;
98}
99
100void MutexImpl::unlock()
101{

Callers 1

mainContinueFunction · 0.45

Calls 1

getMutexFunction · 0.70

Tested by

no test coverage detected