Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LouisBrunner/valgrind-macos
/ lock
Method
lock
drd/tests/monitor_example.cpp:164–165 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
162
~ScopedLock()
163
{ if (m_locked) unlock(); }
164
void lock()
165
{ assert(! m_locked); m_monitor.lock(); m_locked = true; }
166
void unlock()
167
{ assert(m_locked); m_locked = false; m_monitor.unlock(); }
168
Callers
nothing calls this directly
Calls
2
assert
Function · 0.85
lock
Method · 0.45
Tested by
no test coverage detected