aboutsummaryrefslogtreecommitdiff
path: root/src/core/init.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-17 19:57:56 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-17 19:57:56 -0800
commit5633a467a009945a4f1eb06f7ffe9f02b833567f (patch)
treee0010755849424d1bc2b43940f537b5757052ebf /src/core/init.h
parenta00f1938497e629187ebc6035e03bb58d1017730 (diff)
downloadnng-5633a467a009945a4f1eb06f7ffe9f02b833567f.tar.gz
nng-5633a467a009945a4f1eb06f7ffe9f02b833567f.tar.bz2
nng-5633a467a009945a4f1eb06f7ffe9f02b833567f.zip
Pipe IDs are now tracked on global ID hashes.
Diffstat (limited to 'src/core/init.h')
-rw-r--r--src/core/init.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/init.h b/src/core/init.h
index 856faa3c..bae78fc3 100644
--- a/src/core/init.h
+++ b/src/core/init.h
@@ -21,4 +21,11 @@ extern int nni_init(void);
// that all resources used by the library are released back to the system.
extern void nni_fini(void);
+// Private hash tables matching IDs to values. Consumers need to use the
+// nni_idlock to protect access to these.
+nni_idhash *nni_endpoints;
+nni_idhash *nni_pipes;
+nni_idhash *nni_sockets;
+nni_mtx *nni_idlock;
+
#endif // CORE_INIT_H