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

Function func1

drd/tests/std_atomic.cpp:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13std::atomic<bool> g_b;
14
15void *func1(void *instance)
16{
17 while (!g_b) {
18 timespec delay = { 0, 100 * 1000 * 1000 };
19 nanosleep(&delay, NULL);
20 }
21 return NULL;
22}
23
24void *func2(void *instance)
25{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected