Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
26
void MutexThreadChecker::onLockRefCounted() {
27
_storage->threadIdWithLock.store(std::this_thread::get_id());
28
_storage->refCount++;
29
}
30
31
void MutexThreadChecker::onUnlockRefCounted() {
32
if (--_storage->refCount == 0) {
Callers
1
lock
Method · 0.80
Calls
1
store
Method · 0.65
Tested by
no test coverage detected