Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
296
private:
297
mutable Mutex m_mutex;
Callers
2
thread_func
Function · 0.80
main
Function · 0.80
Calls
2
Lock
Method · 0.45
Unlock
Method · 0.45
Tested by
no test coverage detected