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

Method stopRead

deps/physx/physx/source/physx/src/NpScene.cpp:2708–2719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2706}
2707
2708void NpScene::stopRead() const
2709{
2710 if (!(mScene.getFlags() & PxSceneFlag::eREQUIRE_RW_LOCK))
2711 {
2712 Ps::atomicDecrement(&mConcurrentReadCount);
2713
2714 // update local threads read depth
2715 ThreadReadWriteCount localCounts (TlsGetValue(mThreadReadWriteDepth));
2716 localCounts.readDepth--;
2717 TlsSetValue(mThreadReadWriteDepth, localCounts.getData());
2718 }
2719}
2720
2721#else
2722

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