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

Method assertIsLocked

valdi_core/src/valdi_core/cpp/Utils/Mutex.cpp:37–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void MutexThreadChecker::assertIsLocked() {
38 auto currentThreadId = std::this_thread::get_id();
39 SC_ASSERT(_storage->threadIdWithLock.load() == currentThreadId, "Mutex is not acquired by current thread");
40}
41
42void MutexThreadChecker::assertNotLocked() {
43 auto currentThreadId = std::this_thread::get_id();

Callers 1

ViewNodeTree.cppFile · 0.80

Calls 1

loadMethod · 0.65

Tested by

no test coverage detected