diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-17 19:57:56 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-17 19:57:56 -0800 |
| commit | 5633a467a009945a4f1eb06f7ffe9f02b833567f (patch) | |
| tree | e0010755849424d1bc2b43940f537b5757052ebf /src/core/init.h | |
| parent | a00f1938497e629187ebc6035e03bb58d1017730 (diff) | |
| download | nng-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.h | 7 |
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 |
