Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/acl-dev/acl
/ run
Method
run
lib_fiber/samples-c++/fiber_cpp/main.cpp:13–20 ·
view source on GitHub ↗
@override
Source
from the content-addressed store, hash-verified
11
protected:
12
// @override
13
void run(void)
14
{
15
printf(
"fiber-%d-%d running\r\n"
, get_id(), acl::fiber::self());
16
for (int i = 0; i < 10; i++) {
17
acl::fiber::yield();
18
}
19
delete this;
20
}
21
};
22
23
#ifdef ACL_USE_CPP11
Callers
nothing calls this directly
Calls
2
get_id
Function · 0.50
self
Function · 0.50
Tested by
no test coverage detected