MCPcopy Create free account
hub / github.com/F-Stack/f-stack / select

Function select

app/redis-6.2.6/src/anet_ff.c:396–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396int
397select(int nfds, fd_set *readfds, fd_set *writefds,
398 fd_set *exceptfds, struct timeval *timeout)
399{
400 if (unlikely(inited == 0)) {
401 INIT_FUNCTION(select);
402 return real_select(nfds, readfds, writefds, exceptfds, timeout);
403 }
404
405 if (ff_fdisused(nfds)) {
406 struct timeval tv;
407 tv.tv_sec = 0;
408 tv.tv_usec = 0;
409 return ff_select(nfds, readfds, writefds, exceptfds, &tv);
410 } else {
411 return real_select(nfds, readfds, writefds, exceptfds, timeout);
412 }
413}
414
415#pragma GCC diagnostic pop
416

Callers 10

test_flopen_lock_childFunction · 0.85
MsgCmdFunction · 0.85
MonitorFunction · 0.85
DoInteractiveFunction · 0.85
dpaa_event_dequeue_waitFunction · 0.85
app_graph_exitFunction · 0.85
aeApiPollFunction · 0.85

Calls 2

ff_fdisusedFunction · 0.85
ff_selectFunction · 0.85

Tested by 1

test_flopen_lock_childFunction · 0.68