Loading src/event/kqueue.cpp +3 −2 Changes for src/event/kqueue.cpp: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -646,8 +646,9 @@ namespace netplus { int wait = pollptr.waitEventHandler(eargs->timeout); if (wait == 0) { // No events, brief sleep to reduce CPU usage usleep(1000); // 1ms // kevent() already blocked for the full // timeout duration — no additional sleep // needed (matches epoll behavior). continue; } Loading Loading
src/event/kqueue.cpp +3 −2 Changes for src/event/kqueue.cpp: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -646,8 +646,9 @@ namespace netplus { int wait = pollptr.waitEventHandler(eargs->timeout); if (wait == 0) { // No events, brief sleep to reduce CPU usage usleep(1000); // 1ms // kevent() already blocked for the full // timeout duration — no additional sleep // needed (matches epoll behavior). continue; } Loading