From b21d7805523a407a14567017edbdef57ca81781f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 8 Jan 2020 20:34:26 -0800 Subject: fixes #1094 Consider in-lining task and aio This only does it for rep, but it also has changes that should increase the overall test coverage for the REP protocol --- src/protocol/reqrep0/xreq.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/protocol/reqrep0/xreq.c') diff --git a/src/protocol/reqrep0/xreq.c b/src/protocol/reqrep0/xreq.c index 7455c986..15652f4f 100644 --- a/src/protocol/reqrep0/xreq.c +++ b/src/protocol/reqrep0/xreq.c @@ -96,10 +96,10 @@ xreq0_pipe_fini(void *arg) { xreq0_pipe *p = arg; - nni_aio_fini(p->aio_getq); - nni_aio_fini(p->aio_putq); - nni_aio_fini(p->aio_recv); - nni_aio_fini(p->aio_send); + nni_aio_free(p->aio_getq); + nni_aio_free(p->aio_putq); + nni_aio_free(p->aio_recv); + nni_aio_free(p->aio_send); } static int @@ -108,10 +108,10 @@ xreq0_pipe_init(void *arg, nni_pipe *pipe, void *s) xreq0_pipe *p = arg; int rv; - if (((rv = nni_aio_init(&p->aio_getq, xreq0_getq_cb, p)) != 0) || - ((rv = nni_aio_init(&p->aio_putq, xreq0_putq_cb, p)) != 0) || - ((rv = nni_aio_init(&p->aio_recv, xreq0_recv_cb, p)) != 0) || - ((rv = nni_aio_init(&p->aio_send, xreq0_send_cb, p)) != 0)) { + if (((rv = nni_aio_alloc(&p->aio_getq, xreq0_getq_cb, p)) != 0) || + ((rv = nni_aio_alloc(&p->aio_putq, xreq0_putq_cb, p)) != 0) || + ((rv = nni_aio_alloc(&p->aio_recv, xreq0_recv_cb, p)) != 0) || + ((rv = nni_aio_alloc(&p->aio_send, xreq0_send_cb, p)) != 0)) { xreq0_pipe_fini(p); return (rv); } -- cgit v1.2.3-70-g09d2