Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricPengShuai/Interview
/ t2
Function
t2
STL/thread.cpp:25–32 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
23
}
24
25
void t2()
26
{
27
for (int i = 0; i < 5; ++i) {
28
// lock_guard<mutex> lg(mtx);
29
cout <<
"t2 222\n"
;
30
sleep(1);
31
}
32
}
33
34
int cnt = 20;
35
mutex m;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected