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

Method onLock

valdi_core/src/valdi_core/cpp/Utils/Mutex.cpp:18–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16MutexThreadChecker::~MutexThreadChecker() = default;
17
18void MutexThreadChecker::onLock() {
19 _storage->threadIdWithLock.store(std::this_thread::get_id());
20}
21
22void MutexThreadChecker::onUnlock() {
23 _storage->threadIdWithLock.store(std::thread::id());

Callers 2

lockMethod · 0.80
onLockAcquiredMethod · 0.80

Calls 1

storeMethod · 0.65

Tested by

no test coverage detected