changed __exec() to check tmr.size

This commit is contained in:
hyung-hwan 2021-07-27 15:17:16 +00:00
parent feddfb260e
commit 268ed090ec

View File

@ -902,7 +902,7 @@ static HIO_INLINE int __exec (hio_t* hio)
* e.g. write() in a timer job gets completed immediately. */ * e.g. write() in a timer job gets completed immediately. */
fire_cwq_handlers (hio); 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 */ /* wait on the multiplexer only if there is at least 1 active device */
hio_ntime_t tmout; hio_ntime_t tmout;