From 4ed9dadf5e7d17fd42ef4df836b0932972dd29c1 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 2 Jul 2017 16:09:14 -0700 Subject: Use common aio cancellation. --- src/core/msgqueue.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/core/msgqueue.c') diff --git a/src/core/msgqueue.c b/src/core/msgqueue.c index 3d373e2b..19ca116e 100644 --- a/src/core/msgqueue.c +++ b/src/core/msgqueue.c @@ -441,18 +441,6 @@ nni_msgq_aio_get(nni_msgq *mq, nni_aio *aio) } -void -nni_msgq_aio_cancel(nni_msgq *mq, nni_aio *aio) -{ - nni_mtx_lock(&mq->mq_lock); - if (nni_list_active(&mq->mq_aio_getq, aio)) { - nni_list_remove(&mq->mq_aio_getq, aio); - nni_aio_finish(aio, NNG_ECANCELED, 0); - } - nni_mtx_unlock(&mq->mq_lock); -} - - int nni_msgq_canput(nni_msgq *mq) { -- cgit v1.2.3-70-g09d2