From c3bfec2b38caaf34379a891e0ea30c7e48147c6f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 20 Dec 2020 15:14:02 -0800 Subject: fixes #1172 nni_aio_lk is white hot --- src/core/aio.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/core/aio.h') 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 -- cgit v1.2.3-70-g09d2