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

Method lock

drd/tests/monitor_example.cpp:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 pthread_mutex_destroy(&m_mutex);
100 }
101 void lock()
102 {
103 pthread_mutex_lock(&m_mutex);
104 assert(m_recursion_count >= 0);
105 if (++m_recursion_count == 1)
106 {
107 m_owner = pthread_self();
108 }
109 }
110 void unlock()
111 {
112 m_recursion_count--;

Callers 1

lockMethod · 0.45

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected