From a00f1938497e629187ebc6035e03bb58d1017730 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 17 Jan 2017 19:36:15 -0800 Subject: 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. --- src/core/socket.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/socket.h') 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; -- cgit v1.2.3-70-g09d2