diff options
| author | Garrett D'Amore <garrett@damore.org> | 2021-12-31 14:13:08 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2021-12-31 16:11:25 -0800 |
| commit | 5e06e98541ff223e7a18b6a61120532acd09d410 (patch) | |
| tree | 73d3b17ae7676a1e730e190d29f9e2661959b6a2 /src/core/aio.h | |
| parent | 2f66b99830e6dc731e4f631ea743771df701659e (diff) | |
| download | nng-5e06e98541ff223e7a18b6a61120532acd09d410.tar.gz nng-5e06e98541ff223e7a18b6a61120532acd09d410.tar.bz2 nng-5e06e98541ff223e7a18b6a61120532acd09d410.zip | |
Replace nni_aio_prov_set_extra with nni_aio_prov_set_data.
This takes one less parameter, and is simpler. It will let us
reclaim the aio_prov_extra data space as well, so that we can
use it for other purposes.
Diffstat (limited to 'src/core/aio.h')
| -rw-r--r-- | src/core/aio.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/aio.h b/src/core/aio.h index 9ef5f63d..d1d4cf79 100644 --- a/src/core/aio.h +++ b/src/core/aio.h @@ -133,8 +133,8 @@ extern void nni_aio_abort(nni_aio *, int rv); // nng_aio_finish family of functions.) extern int nni_aio_begin(nni_aio *); -extern void *nni_aio_get_prov_extra(nni_aio *, unsigned); -extern void nni_aio_set_prov_extra(nni_aio *, unsigned, void *); +extern void *nni_aio_get_prov_data(nni_aio *); +extern void nni_aio_set_prov_data(nni_aio *, void *); // nni_aio_advance_iov moves up the iov, reflecting that some I/O as // been performed. It returns the amount of data remaining in the argument; // i.e. if the count refers to more data than the iov can support, then @@ -200,9 +200,8 @@ struct nng_aio { // Provider-use fields. nni_aio_cancel_fn a_cancel_fn; void *a_cancel_arg; - nni_list_node a_prov_node; // Linkage on provider list. - void *a_prov_extra[2]; // Extra data used by provider - + void *a_prov_data; + nni_list_node a_prov_node; // Linkage on provider list. nni_aio_expire_q *a_expire_q; nni_list_node a_expire_node; // Expiration node nni_reap_node a_reap_node; |
