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

Method wait

drd/tests/monitor_example.cpp:116–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 pthread_mutex_unlock(&m_mutex);
115 }
116 void wait()
117 {
118 assert(m_recursion_count == 1);
119 assert(m_owner == pthread_self());
120 m_recursion_count--;
121 pthread_cond_wait(&m_cond, &m_mutex);
122 m_recursion_count++;
123 m_owner = pthread_self();
124 }
125 void signal()
126 {
127 assert(m_recursion_count > 0);

Callers 8

worker_threadFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
thread_funcFunction · 0.45
mainFunction · 0.45
waitMethod · 0.45
thread_funcFunction · 0.45
mainFunction · 0.45

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected