| 29 | } |
| 30 | |
| 31 | void MutexThreadChecker::onUnlockRefCounted() { |
| 32 | if (--_storage->refCount == 0) { |
| 33 | _storage->threadIdWithLock.store(std::thread::id()); |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | void MutexThreadChecker::assertIsLocked() { |
| 38 | auto currentThreadId = std::this_thread::get_id(); |