MCPcopy Create free account
hub / github.com/EricPengShuai/Interview / t4

Function t4

STL/thread.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void 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
63int main()
64{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected