MCPcopy Create free account
hub / github.com/Snapchat/Valdi / onUnlockRefCounted

Method onUnlockRefCounted

valdi_core/src/valdi_core/cpp/Utils/Mutex.cpp:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

unlockMethod · 0.80

Calls 2

idFunction · 0.85
storeMethod · 0.65

Tested by

no test coverage detected