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

Method assertNotLocked

valdi_core/src/valdi_core/cpp/Utils/Mutex.cpp:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void MutexThreadChecker::assertNotLocked() {
43 auto currentThreadId = std::this_thread::get_id();
44 SC_ASSERT(_storage->threadIdWithLock.load() != currentThreadId, "Mutex is already locked by current thread");
45}
46
47#else
48MutexThreadChecker::MutexThreadChecker() = default;

Callers 1

lockMethod · 0.80

Calls 1

loadMethod · 0.65

Tested by

no test coverage detected