Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chen3feng/toft
/ TestThread
Method
TestThread
system/threading/thread_group_test.cpp:21–29 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
19
{
20
}
21
void TestThread()
22
{
23
for (;;)
24
{
25
Mutex::Locker locker(&mutex);
26
if (++n >= kCount)
27
return;
28
}
29
}
30
protected:
31
int n;
32
Mutex mutex;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected