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

Method lock

valdi_core/src/valdi_core/cpp/Utils/Mutex.cpp:63–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61Mutex::~Mutex() = default;
62
63void Mutex::lock() {
64 _threadChecker.assertNotLocked();
65 _innerMutex.lock();
66 _threadChecker.onLock();
67}
68
69void Mutex::unlock() {
70 _threadChecker.onUnlock();

Callers 5

ensureInnerMethod · 0.45
strongRefFunction · 0.45
getProxyMethod · 0.45
disposeMethod · 0.45
barrierMethod · 0.45

Calls 3

assertNotLockedMethod · 0.80
onLockMethod · 0.80
onLockRefCountedMethod · 0.80

Tested by

no test coverage detected