diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-12-20 15:14:02 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-12-20 15:17:11 -0800 |
| commit | c3bfec2b38caaf34379a891e0ea30c7e48147c6f (patch) | |
| tree | 316318dc63bbbdfbbf03ac6344bfc5bc3cfbb9fb /src/core/aio.h | |
| parent | b33fdd1f21830ae193b597b7039a44b17c97ffec (diff) | |
| download | nng-c3bfec2b38caaf34379a891e0ea30c7e48147c6f.tar.gz nng-c3bfec2b38caaf34379a891e0ea30c7e48147c6f.tar.bz2 nng-c3bfec2b38caaf34379a891e0ea30c7e48147c6f.zip | |
fixes #1172 nni_aio_lk is white hot
Diffstat (limited to 'src/core/aio.h')
| -rw-r--r-- | src/core/aio.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/aio.h b/src/core/aio.h index e108e4b8..ba231bd1 100644 --- a/src/core/aio.h +++ b/src/core/aio.h @@ -165,6 +165,8 @@ extern void nni_sleep_aio(nni_duration, nni_aio *); extern int nni_aio_sys_init(void); extern void nni_aio_sys_fini(void); +typedef struct nni_aio_expire_q nni_aio_expire_q; + // An nni_aio is an async I/O handle. The details of this aio structure // are private to the AIO framework. The structure has the public name // (nng_aio) so that we minimize the pollution in the public API namespace. @@ -200,8 +202,9 @@ struct nng_aio { nni_list_node a_prov_node; // Linkage on provider list. void * a_prov_extra[2]; // Extra data used by provider - nni_list_node a_expire_node; // Expiration node - nni_reap_node a_reap_node; + nni_aio_expire_q *a_expire_q; + nni_list_node a_expire_node; // Expiration node + nni_reap_node a_reap_node; }; #endif // CORE_AIO_H |
