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

Method post_increment

drd/tests/annotate_smart_pointer.cpp:287–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 return result;
286 }
287 int post_increment()
288 {
289 int result;
290 m_mutex.Lock();
291 result = m_count++;
292 m_mutex.Unlock();
293 return result;
294 }
295
296private:
297 mutable Mutex m_mutex;

Callers 2

thread_funcFunction · 0.80
mainFunction · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected