MCPcopy Create free account
hub / github.com/Tencent/libco / EpollEvent2Poll

Function EpollEvent2Poll

co_routine.cpp:692–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690 return e;
691}
692static short EpollEvent2Poll( uint32_t events )
693{
694 short e = 0;
695 if( events & EPOLLIN ) e |= POLLIN;
696 if( events & EPOLLOUT ) e |= POLLOUT;
697 if( events & EPOLLHUP ) e |= POLLHUP;
698 if( events & EPOLLERR ) e |= POLLERR;
699 if( events & EPOLLRDNORM ) e |= POLLRDNORM;
700 if( events & EPOLLWRNORM ) e |= POLLWRNORM;
701 return e;
702}
703
704static stCoRoutineEnv_t* g_arrCoEnvPerThread[ 204800 ] = { 0 };
705void co_init_curr_thread_env()

Callers 1

OnPollPreparePfnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected