aboutsummaryrefslogtreecommitdiff
path: root/src/core/aio.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-03-01 21:18:58 -0800
committerGarrett D'Amore <garrett@damore.org>2017-03-01 21:18:58 -0800
commit97614393e450b6c6813021f0e733b864a6265872 (patch)
tree31c8d4d0b2206e944f797b291660d8cf52eebea0 /src/core/aio.h
parent5436cc9e1619bf1dd80fabb568aac344ae65d406 (diff)
downloadnng-97614393e450b6c6813021f0e733b864a6265872.tar.gz
nng-97614393e450b6c6813021f0e733b864a6265872.tar.bz2
nng-97614393e450b6c6813021f0e733b864a6265872.zip
Start of msgq aio.
Diffstat (limited to 'src/core/aio.h')
-rw-r--r--src/core/aio.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/aio.h b/src/core/aio.h
index 15746fc3..76ebb7c3 100644
--- a/src/core/aio.h
+++ b/src/core/aio.h
@@ -12,6 +12,7 @@
#include "core/defs.h"
#include "core/list.h"
+#include "core/taskq.h"
#include "core/thread.h"
typedef struct nni_aio_ops nni_aio_ops;
@@ -25,10 +26,11 @@ struct nni_aio {
nni_cb a_cb; // User specified callback.
void * a_cbarg; // Callback argument.
- // These fields are private to the io events framework.
+ // These fields are private to the aio framework.
nni_mtx a_lk;
nni_cv a_cv;
unsigned a_flags;
+ nni_taskq_ent a_tqe;
// Read/write operations.
nni_iov a_iov[4];