| 2659 | } |
| 2660 | |
| 2661 | void NpScene::stopWrite(bool allowReentry) |
| 2662 | { |
| 2663 | if (!(mScene.getFlags() & PxSceneFlag::eREQUIRE_RW_LOCK)) |
| 2664 | { |
| 2665 | Ps::atomicDecrement(&mConcurrentWriteCount); |
| 2666 | |
| 2667 | // decrement depth of writes for this thread |
| 2668 | ThreadReadWriteCount localCounts (TlsGetValue(mThreadReadWriteDepth)); |
| 2669 | |
| 2670 | // see comment in startWrite() |
| 2671 | if (allowReentry) |
| 2672 | localCounts.writeDepth--; |
| 2673 | else |
| 2674 | localCounts.writeDepth-=2; |
| 2675 | |
| 2676 | TlsSetValue(mThreadReadWriteDepth, localCounts.getData()); |
| 2677 | } |
| 2678 | } |
| 2679 | |
| 2680 | bool NpScene::startRead() const |
| 2681 | { |
no test coverage detected