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

Function poll

co_hook_sys_call.cpp:576–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574extern int co_poll_inner( stCoEpoll_t *ctx,struct pollfd fds[], nfds_t nfds, int timeout, poll_pfn_t pollfunc);
575
576int poll(struct pollfd fds[], nfds_t nfds, int timeout)
577{
578
579 HOOK_SYS_FUNC( poll );
580
581 if( !co_is_enable_sys_hook() )
582 {
583 return g_sys_poll_func( fds,nfds,timeout );
584 }
585
586 return co_poll_inner( co_get_epoll_ct(),fds,nfds,timeout, g_sys_poll_func);
587
588}
589int setsockopt(int fd, int level, int option_name,
590 const void *option_value, socklen_t option_len)
591{

Callers 14

poll_routineFunction · 0.85
ProducerFunction · 0.85
SetAndGetEnvFunction · 0.85
accept_routineFunction · 0.85
RoutineFuncFunction · 0.85
RoutineFuncFunction · 0.85
connectFunction · 0.85
readFunction · 0.85
writeFunction · 0.85
sendtoFunction · 0.85
recvfromFunction · 0.85
sendFunction · 0.85

Calls 3

co_is_enable_sys_hookFunction · 0.85
co_poll_innerFunction · 0.85
co_get_epoll_ctFunction · 0.85

Tested by 1

RoutineFuncFunction · 0.68