| 2706 | } |
| 2707 | |
| 2708 | void 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 |
no test coverage detected