summaryrefslogtreecommitdiff
path: root/src/core/socket.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-17 19:36:15 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-17 19:36:15 -0800
commita00f1938497e629187ebc6035e03bb58d1017730 (patch)
tree36f9694c9d1d94ef64f9686da3bf8cd971877f15 /src/core/socket.h
parenteb3b131db73610274a41f04d8fd6b7cf879cc016 (diff)
downloadnng-a00f1938497e629187ebc6035e03bb58d1017730.tar.gz
nng-a00f1938497e629187ebc6035e03bb58d1017730.tar.bz2
nng-a00f1938497e629187ebc6035e03bb58d1017730.zip
Pipe IDs are now tracked by hash table for performance.
This gives a better idea of pipe ID uniqueness, and is a step towards conversion of the API to use IDs instead of pointers.
Diffstat (limited to 'src/core/socket.h')
-rw-r--r--src/core/socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/socket.h b/src/core/socket.h
index 424b1321..2860ad46 100644
--- a/src/core/socket.h
+++ b/src/core/socket.h
@@ -42,6 +42,8 @@ struct nng_socket {
nni_cv s_notify_cv; // wakes notify thread
nni_mtx s_notify_mx; // protects s_notify list
+ nni_idhash * s_pipes_by_id; // pipes by id
+
nni_list s_reaps; // pipes to reap
nni_thr s_reaper;
nni_thr s_notifier;