diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-03-01 21:18:58 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-03-01 21:18:58 -0800 |
| commit | 97614393e450b6c6813021f0e733b864a6265872 (patch) | |
| tree | 31c8d4d0b2206e944f797b291660d8cf52eebea0 /src/core/msgqueue.h | |
| parent | 5436cc9e1619bf1dd80fabb568aac344ae65d406 (diff) | |
| download | nng-97614393e450b6c6813021f0e733b864a6265872.tar.gz nng-97614393e450b6c6813021f0e733b864a6265872.tar.bz2 nng-97614393e450b6c6813021f0e733b864a6265872.zip | |
Start of msgq aio.
Diffstat (limited to 'src/core/msgqueue.h')
| -rw-r--r-- | src/core/msgqueue.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/msgqueue.h b/src/core/msgqueue.h index 7451139d..a350c3b3 100644 --- a/src/core/msgqueue.h +++ b/src/core/msgqueue.h @@ -35,6 +35,14 @@ extern int nni_msgq_init(nni_msgq **, int); // messages that may be in the queue. extern void nni_msgq_fini(nni_msgq *); +extern int nni_msgq_aio_put(nni_msgq *, nni_aio *); +extern int nni_msgq_aio_get(nni_msgq *, nni_aio *); +extern int nni_msgq_aio_put_until(nni_msgq *, nni_aio *, nni_time); +extern int nni_msgq_aio_get_until(nni_msgq *, nni_aio *, nni_time); +extern int nni_msgq_aio_notify_get(nni_msgq *, nni_aio *); +extern int nni_msgq_aio_notify_put(nni_msgq *, nni_aio *); +extern int nni_msgq_aio_cancel(nni_msgq *, nni_aio *); + // nni_msgq_put puts the message to the queue. It blocks until it // was able to do so, or the queue is closed, returning either 0 on // success or NNG_ECLOSED if the queue was closed. If NNG_ECLOSED is |
