| 46 | namespace { |
| 47 | |
| 48 | void fun(std::condition_variable* s, std::mutex* m, int* waiting, int i) |
| 49 | { |
| 50 | std::printf("thread %d waiting\n", i); |
| 51 | std::unique_lock<std::mutex> l(*m); |
| 52 | *waiting += 1; |
| 53 | s->wait(l); |
| 54 | std::printf("thread %d done\n", i); |
| 55 | } |
| 56 | |
| 57 | void increment(std::condition_variable* s, std::mutex* m, int* waiting, std::atomic<int>* c) |
| 58 | { |
no outgoing calls
no test coverage detected