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

Method lockReader

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

Source from the content-addressed store, hash-verified

140}
141
142void ReadWriteLock::lockReader(bool takeLock)
143{
144 if(takeLock)
145 mImpl->mutex.lock();
146
147 atomicIncrement(&mImpl->readerCounter);
148
149 if(takeLock)
150 mImpl->mutex.unlock();
151}
152
153void ReadWriteLock::lockWriter()
154{

Callers 2

onTickPreRenderMethod · 0.45
lockReadMethod · 0.45

Calls 3

atomicIncrementFunction · 0.70
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected