Skip to content

Commit

Permalink
* FIX #1486 by waking up latest aio each time. (#1487)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaylinYu authored Aug 9, 2021
1 parent 26075dc commit e755e1a
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 @@ -520,9 +520,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 e755e1a

Please sign in to comment.