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

Method onLockRefCounted

valdi_core/src/valdi_core/cpp/Utils/Mutex.cpp:26–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void MutexThreadChecker::onLockRefCounted() {
27 _storage->threadIdWithLock.store(std::this_thread::get_id());
28 _storage->refCount++;
29}
30
31void MutexThreadChecker::onUnlockRefCounted() {
32 if (--_storage->refCount == 0) {

Callers 1

lockMethod · 0.80

Calls 1

storeMethod · 0.65

Tested by

no test coverage detected