Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/acl-dev/acl
/ run
Method
run
lib_acl_cpp/samples/thread/main.cpp:68–79 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
66
67
protected:
68
void* run(void)
69
{
70
int i = 0;
71
while (i++ < 5)
72
{
73
printf(
"sleep one second\r\n"
);
74
sleep(1);
75
}
76
77
cond_.notify();
78
return NULL;
79
}
80
81
private:
82
acl::thread_cond& cond_;
Callers
nothing calls this directly
Calls
2
sleep
Function · 0.50
notify
Method · 0.45
Tested by
no test coverage detected