aboutsummaryrefslogtreecommitdiff
path: root/src/core/aio.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-09-06 11:37:50 -0700
committerGarrett D'Amore <garrett@damore.org>2017-09-22 11:48:40 -0700
commit72147bcfbdc568bc58877e0904b92013d82a2acd (patch)
tree67ce22ee787b253f6b2ae9d1c68bb97d2a0450d1 /src/core/aio.h
parent2c977c35d8e44ad21345c3e91088f4f3d3f03605 (diff)
downloadnng-72147bcfbdc568bc58877e0904b92013d82a2acd.tar.gz
nng-72147bcfbdc568bc58877e0904b92013d82a2acd.tar.bz2
nng-72147bcfbdc568bc58877e0904b92013d82a2acd.zip
All AIOs are initialized. Treat NULL AIOs as noop during stop.
Diffstat (limited to 'src/core/aio.h')
-rw-r--r--src/core/aio.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/aio.h b/src/core/aio.h
index 717e7995..14af4efc 100644
--- a/src/core/aio.h
+++ b/src/core/aio.h
@@ -28,7 +28,6 @@ struct nni_aio {
// These fields are private to the aio framework.
nni_cv a_cv;
- unsigned a_init : 1; // initialized flag
unsigned a_fini : 1; // shutting down (no new operations)
unsigned a_done : 1; // operation has completed
unsigned a_pend : 1; // completion routine pending
@@ -36,7 +35,7 @@ struct nni_aio {
unsigned a_expiring : 1; // expiration callback in progress
unsigned a_waiting : 1; // a thread is waiting for this to finish
unsigned a_synch : 1; // run completion synchronously
- unsigned a_pad : 25; // ensure 32-bit alignment
+ unsigned a_pad : 26; // ensure 32-bit alignment
nni_task a_task;
// Read/write operations.