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/pubsub0/sub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/protocol/pubsub0/sub.c') diff --git a/src/protocol/pubsub0/sub.c b/src/protocol/pubsub0/sub.c index 56da98f8..c5b84313 100644 --- a/src/protocol/pubsub0/sub.c +++ b/src/protocol/pubsub0/sub.c @@ -265,7 +265,7 @@ sub0_pipe_fini(void *arg) { sub0_pipe *p = arg; - nni_aio_fini(p->aio_recv); + nni_aio_free(p->aio_recv); } static int @@ -274,7 +274,7 @@ sub0_pipe_init(void *arg, nni_pipe *pipe, void *s) sub0_pipe *p = arg; int rv; - if ((rv = nni_aio_init(&p->aio_recv, sub0_recv_cb, p)) != 0) { + if ((rv = nni_aio_alloc(&p->aio_recv, sub0_recv_cb, p)) != 0) { sub0_pipe_fini(p); return (rv); } -- cgit v1.2.3-70-g09d2