diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-01-08 20:34:26 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-01-08 21:16:30 -0800 |
| commit | b21d7805523a407a14567017edbdef57ca81781f (patch) | |
| tree | e07f08bdc047ee4dfb057b670766e3de5bf2f981 /src/protocol/pipeline0/pull.c | |
| parent | 8479b4c8861c77cfd9eb64e724615605bdd1cbcb (diff) | |
| download | nng-b21d7805523a407a14567017edbdef57ca81781f.tar.gz nng-b21d7805523a407a14567017edbdef57ca81781f.tar.bz2 nng-b21d7805523a407a14567017edbdef57ca81781f.zip | |
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
Diffstat (limited to 'src/protocol/pipeline0/pull.c')
| -rw-r--r-- | src/protocol/pipeline0/pull.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocol/pipeline0/pull.c b/src/protocol/pipeline0/pull.c index 64b47cef..8feb08b8 100644 --- a/src/protocol/pipeline0/pull.c +++ b/src/protocol/pipeline0/pull.c @@ -73,8 +73,8 @@ pull0_pipe_fini(void *arg) { pull0_pipe *p = arg; - nni_aio_fini(p->putq_aio); - nni_aio_fini(p->recv_aio); + nni_aio_free(p->putq_aio); + nni_aio_free(p->recv_aio); } static int @@ -83,8 +83,8 @@ pull0_pipe_init(void *arg, nni_pipe *pipe, void *s) pull0_pipe *p = arg; int rv; - if (((rv = nni_aio_init(&p->putq_aio, pull0_putq_cb, p)) != 0) || - ((rv = nni_aio_init(&p->recv_aio, pull0_recv_cb, p)) != 0)) { + if (((rv = nni_aio_alloc(&p->putq_aio, pull0_putq_cb, p)) != 0) || + ((rv = nni_aio_alloc(&p->recv_aio, pull0_recv_cb, p)) != 0)) { pull0_pipe_fini(p); return (rv); } |
