| 427 | } |
| 428 | |
| 429 | void 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 | |
| 449 | int KqueuerObj::InputNotify() |
| 450 | { |