summaryrefslogtreecommitdiff
path: root/src/core/msgqueue.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-02 16:09:14 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-02 16:09:14 -0700
commit4ed9dadf5e7d17fd42ef4df836b0932972dd29c1 (patch)
treede5581a25a0a8d16a3efc74197c8784b30d827bd /src/core/msgqueue.c
parentac1cdf1a4a2bff6d2ad469735d6825881f5045d9 (diff)
downloadnng-4ed9dadf5e7d17fd42ef4df836b0932972dd29c1.tar.gz
nng-4ed9dadf5e7d17fd42ef4df836b0932972dd29c1.tar.bz2
nng-4ed9dadf5e7d17fd42ef4df836b0932972dd29c1.zip
Use common aio cancellation.
Diffstat (limited to 'src/core/msgqueue.c')
-rw-r--r--src/core/msgqueue.c12
1 files changed, 0 insertions, 12 deletions
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)
{