changed __exec() to check tmr.size
This commit is contained in:
parent
feddfb260e
commit
268ed090ec
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user