| 2656 | } |
| 2657 | |
| 2658 | void 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 |
no test coverage detected