aboutsummaryrefslogtreecommitdiff
path: root/src/core/thread.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-16 16:27:22 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-16 16:27:22 -0800
commitac8415c24ffea645105c3859e814843e81c97f8a (patch)
tree7b64b4aab3de6ce5bdd69c3d5b7ead57f4a4b4e7 /src/core/thread.h
parentb8f7236aa2928d70d9bff2e1071654982539eeda (diff)
downloadnng-ac8415c24ffea645105c3859e814843e81c97f8a.tar.gz
nng-ac8415c24ffea645105c3859e814843e81c97f8a.tar.bz2
nng-ac8415c24ffea645105c3859e814843e81c97f8a.zip
Start of event framework.
This compiles correctly, but doesn't actually deliver events yet. As part of this, I've made most of the initializables in nng safe to tear-down if uninitialized (or set to zero e.g. via calloc). This makes it loads easier to write the teardown on error code, since I can deinit everything, without worrying about which things have been initialized and which have not.
Diffstat (limited to 'src/core/thread.h')
-rw-r--r--src/core/thread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/thread.h b/src/core/thread.h
index 95794a6e..44f5c9e4 100644
--- a/src/core/thread.h
+++ b/src/core/thread.h
@@ -31,6 +31,7 @@ typedef struct {
int start;
int stop;
int done;
+ int init;
} nni_thr;
// nni_mtx_init initializes the mutex. (Win32 programmers take note;