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

Method stopRead

physx/source/physx/src/NpScene.cpp:2658–2669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2656}
2657
2658void NpScene::stopRead() const
2659{
2660 if (!(mScene.getFlags() & PxSceneFlag::eREQUIRE_RW_LOCK))
2661 {
2662 Ps::atomicDecrement(&mConcurrentReadCount);
2663
2664 // update local threads read depth
2665 ThreadReadWriteCount localCounts (TlsGetValue(mThreadReadWriteDepth));
2666 localCounts.readDepth--;
2667 TlsSetValue(mThreadReadWriteDepth, localCounts.getData());
2668 }
2669}
2670
2671#else
2672

Callers 1

~NpReadCheckMethod · 0.80

Calls 5

atomicDecrementFunction · 0.50
TlsGetValueFunction · 0.50
TlsSetValueFunction · 0.50
getFlagsMethod · 0.45
getDataMethod · 0.45

Tested by

no test coverage detected