MCPcopy Create free account
hub / github.com/LouisBrunner/valgrind-macos / ScopedLock

Method ScopedLock

drd/tests/monitor_example.cpp:158–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156{
157public:
158 ScopedLock(Monitor& m)
159 : m_monitor(m)
160 , m_locked(false)
161 { lock(); }
162 ~ScopedLock()
163 { if (m_locked) unlock(); }
164 void lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected