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

Function PollEvent2Epoll

co_routine.cpp:681–691  ·  view source on GitHub ↗

* EPOLLPRI POLLPRI // There is urgent data to read. * EPOLLMSG POLLMSG * * POLLREMOVE * POLLRDHUP * POLLNVAL * * */

Source from the content-addressed store, hash-verified

679 *
680 * */
681static uint32_t PollEvent2Epoll( short events )
682{
683 uint32_t e = 0;
684 if( events & POLLIN ) e |= EPOLLIN;
685 if( events & POLLOUT ) e |= EPOLLOUT;
686 if( events & POLLHUP ) e |= EPOLLHUP;
687 if( events & POLLERR ) e |= EPOLLERR;
688 if( events & POLLRDNORM ) e |= EPOLLRDNORM;
689 if( events & POLLWRNORM ) e |= EPOLLWRNORM;
690 return e;
691}
692static short EpollEvent2Poll( uint32_t events )
693{
694 short e = 0;

Callers 1

co_poll_innerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected