mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-17 19:31:18 +00:00
Return from uev_run() when UEV_NONBLOCK and no event is pending
uev_run() with only UEV_NONBLOCK never returns when there are watchers
but no events, it spins at full CPU load:
uev_run(ctx, UEV_NONBLOCK);
The loop polls epoll with a zero timeout and only stops on UEV_ONCE.
Leave the loop when a nonblocking poll finds no events.
This commit is contained in:
1 parent
09d9b6ba04
commit
28643fa599
5 files changed
+45
-5
No files matched your search
@@ -7,6 +7,7 @@ cronrun
|
||||
cronstart
|
||||
error
|
||||
io
|
||||
nonblock
|
||||
resume
|
||||
signal
|
||||
stdin
|
||||
|
||||
Reference in new issue
Block a user