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

Method KqueueDispatch

adapter/micro_thread/kqueue_proxy.cpp:429–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429void KqueueProxy::KqueueDispatch()
430{
431 int nfd;
432 int wait_time = KqueueGetTimeout();
433 if (wait_time) {
434 struct timespec ts;
435 ts.tv_sec = wait_time / 1000;
436 ts.tv_nsec = 0;
437 nfd = ff_kevent(_kqfd, NULL, 0, _evtlist, _maxfd, &ts);
438 } else {
439 nfd = ff_kevent(_kqfd, NULL, 0, _evtlist, _maxfd, NULL);
440 }
441 if (nfd <= 0)
442 {
443 return;
444 }
445
446 KqueueRcvEventList(nfd);
447}
448
449int KqueuerObj::InputNotify()
450{

Callers 1

LoopMethod · 0.80

Calls 1

ff_keventFunction · 0.85

Tested by

no test coverage detected