| 13 | std::atomic<bool> g_b; |
| 14 | |
| 15 | void *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 | |
| 24 | void *func2(void *instance) |
| 25 | { |
nothing calls this directly
no outgoing calls
no test coverage detected