summaryrefslogtreecommitdiff
path: root/ev_iouring.c
diff options
context:
space:
mode:
authorMarc Alexander Lehmann <libev@schmorp.de>2019-08-17 05:30:16 +0000
committerMarc Alexander Lehmann <libev@schmorp.de>2019-08-17 05:30:16 +0000
commit05948cda357f70bfde8bc989eca3920387c10f3a (patch)
tree81b3789052ac9a21b5b2034c8c50e5b8865b8277 /ev_iouring.c
parent2114cc0f410234e454e48fdbf7bb9d13e7d7888e (diff)
downloadlibev-05948cda357f70bfde8bc989eca3920387c10f3a.tar.gz
libev-05948cda357f70bfde8bc989eca3920387c10f3a.zip
*** empty log message ***
Diffstat (limited to 'ev_iouring.c')
-rw-r--r--ev_iouring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ev_iouring.c b/ev_iouring.c
index 35b5913..533e936 100644
--- a/ev_iouring.c
+++ b/ev_iouring.c
@@ -576,7 +576,7 @@ iouring_poll (EV_P_ ev_tstamp timeout)
{
/* if we have events, no need for extra syscalls, but we might have to queue events */
if (iouring_handle_cq (EV_A))
- timeout = 0.;
+ timeout = EV_TS_CONST (0.);
else
/* no events, so maybe wait for some */
iouring_tfd_update (EV_A_ timeout);
@@ -589,7 +589,7 @@ iouring_poll (EV_P_ ev_tstamp timeout)
EV_RELEASE_CB;
res = evsys_io_uring_enter (iouring_fd, iouring_to_submit, 1,
- timeout ? IORING_ENTER_GETEVENTS : 0, 0, 0);
+ timeout > EV_TS_CONST (0.) ? IORING_ENTER_GETEVENTS : 0, 0, 0);
iouring_to_submit = 0;
EV_ACQUIRE_CB;