| 2609 | } |
| 2610 | |
| 2611 | void NpScene::stopWrite(bool allowReentry) |
| 2612 | { |
| 2613 | if (!(mScene.getFlags() & PxSceneFlag::eREQUIRE_RW_LOCK)) |
| 2614 | { |
| 2615 | Ps::atomicDecrement(&mConcurrentWriteCount); |
| 2616 | |
| 2617 | // decrement depth of writes for this thread |
| 2618 | ThreadReadWriteCount localCounts (TlsGetValue(mThreadReadWriteDepth)); |
| 2619 | |
| 2620 | // see comment in startWrite() |
| 2621 | if (allowReentry) |
| 2622 | localCounts.writeDepth--; |
| 2623 | else |
| 2624 | localCounts.writeDepth-=2; |
| 2625 | |
| 2626 | TlsSetValue(mThreadReadWriteDepth, localCounts.getData()); |
| 2627 | } |
| 2628 | } |
| 2629 | |
| 2630 | bool NpScene::startRead() const |
| 2631 | { |
no test coverage detected