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

Method lock

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

Source from the content-addressed store, hash-verified

77}
78
79void MutexImpl::lock()
80{
81 int err = pthread_mutex_lock(&getMutex(this)->lock);
82 PX_ASSERT(!err);
83 PX_UNUSED(err);
84
85#if PX_DEBUG
86 getMutex(this)->owner = Thread::getId();
87#endif
88}
89
90bool MutexImpl::trylock()
91{

Callers 2

lockReaderMethod · 0.45
lockWriterMethod · 0.45

Calls 2

PX_UNUSEDFunction · 0.85
getMutexFunction · 0.70

Tested by

no test coverage detected