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