Skip to content

Commit

Permalink
* FIX nanomsg#1486 by waking up latest aio each time. (nanomsg#1487)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaylinYu committed Aug 11, 2021
1 parent 4cdd582 commit f716cca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,8 @@ nni_aio_expire_add(nni_aio *aio)
}

eq->eq_list[eq->eq_len++] = aio;
if (eq->eq_len == 1) {
nni_cv_wake(&eq->eq_cv);
}
// Fire the latest aio, but it cames with performance punishment
nni_cv_wake(&eq->eq_cv);
}

static void
Expand Down

0 comments on commit f716cca

Please sign in to comment.