| 48 | } |
| 49 | |
| 50 | void t4() |
| 51 | { |
| 52 | while (cnt > 0) { |
| 53 | lock_guard<mutex> lockGuard(m); |
| 54 | // m.lock(); |
| 55 | if (cnt > 0) { |
| 56 | --cnt; |
| 57 | cout << cnt << "\tt4" << endl; |
| 58 | } |
| 59 | // m.unlock(); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | int main() |
| 64 | { |
nothing calls this directly
no outgoing calls
no test coverage detected