From 268ed090ec2452055c0991ce86bfc7b06fe3a20b Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 27 Jul 2021 15:17:16 +0000 Subject: [PATCH] changed __exec() to check tmr.size --- hio/lib/hio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hio/lib/hio.c b/hio/lib/hio.c index 9c5de07..a6cbcb2 100644 --- a/hio/lib/hio.c +++ b/hio/lib/hio.c @@ -902,7 +902,7 @@ static HIO_INLINE int __exec (hio_t* hio) * e.g. write() in a timer job gets completed immediately. */ fire_cwq_handlers (hio); - if (!HIO_DEVL_IS_EMPTY(&hio->actdev)) + if (HIO_LIKELY(!HIO_DEVL_IS_EMPTY(&hio->actdev) || hio->tmr.size > 0)) { /* wait on the multiplexer only if there is at least 1 active device */ hio_ntime_t tmout;