From ac8415c24ffea645105c3859e814843e81c97f8a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 16 Jan 2017 16:27:22 -0800 Subject: 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. --- src/core/thread.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/thread.h') 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; -- cgit v1.2.3-70-g09d2