Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/libco
/ task_t
Class
task_t
example_echosvr.cpp:45–49 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
43
44
using namespace std;
45
struct task_t
46
{
47
stCoRoutine_t *co;
48
int fd;
49
};
50
51
static stack<task_t*> g_readwrite;
52
static int g_listen_fd = -1;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected