diff options
| author | JaylinYu <64823539+JaylinYu@users.noreply.github.com> | 2021-08-10 06:43:50 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-09 15:43:50 -0700 |
| commit | e755e1a7a15ce001ddd74fde9fc9bce6f4d978ad (patch) | |
| tree | 345de810895e592e062a657f7eb4563981118136 /src/core | |
| parent | 26075dcbab6b33b63141d8fff4b75a5d99182dce (diff) | |
| download | nng-e755e1a7a15ce001ddd74fde9fc9bce6f4d978ad.tar.gz nng-e755e1a7a15ce001ddd74fde9fc9bce6f4d978ad.tar.bz2 nng-e755e1a7a15ce001ddd74fde9fc9bce6f4d978ad.zip | |
* FIX #1486 by waking up latest aio each time. (#1487)
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/aio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/aio.c b/src/core/aio.c index 3218c4b9..8ca00dd6 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -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 |
