From 4c3e4af7f989eae6688a7710f21241b72a3ad0b0 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 5 Jun 2017 17:48:50 -0700 Subject: New object hash implementation, used by socket (to start). --- src/core/socket.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/socket.h') diff --git a/src/core/socket.h b/src/core/socket.h index dc6f5530..5fc3d593 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -19,8 +19,6 @@ struct nni_socket { nni_cv s_cv; uint32_t s_id; - uint32_t s_refcnt; - nni_cv s_refcv; nni_msgq * s_uwq; // Upper write queue nni_msgq * s_urq; // Upper read queue @@ -63,8 +61,10 @@ struct nni_socket { uint32_t s_nextid; // Next Pipe ID. }; +extern int nni_sock_sys_init(void); +extern void nni_sock_sys_fini(void); + extern int nni_sock_hold(nni_sock **, uint32_t); -extern int nni_sock_hold_close(nni_sock **, uint32_t); extern void nni_sock_rele(nni_sock *); extern int nni_sock_open(nni_sock **, uint16_t); extern void nni_sock_close(nni_sock *); -- cgit v1.2.3-70-g09d2