From 3d4be5126f91978b7d7349de79334ecfc8fc2afe Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 11 Mar 2017 22:38:21 -0800 Subject: Notification working - separate thread now. --- src/core/socket.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/core/socket.h') diff --git a/src/core/socket.h b/src/core/socket.h index 6a608d0a..a746a170 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -44,15 +44,9 @@ struct nni_socket { nni_list s_eps; // active endpoints nni_list s_pipes; // ready pipes (started) nni_list s_idles; // idle pipes (not ready) - nni_list s_events; // pending events - nni_list s_notify; // event watchers - nni_cv s_notify_cv; // wakes notify thread - nni_mtx s_notify_mx; // protects s_notify list size_t s_rcvmaxsz; // maximum receive size - nni_thr s_notifier; - int s_ep_pend; // EP dial/listen in progress int s_closing; // Socket is closing int s_closed; // Socket closed @@ -89,6 +83,9 @@ extern uint32_t nni_sock_id(nni_sock *); extern void nni_sock_lock(nni_sock *); extern void nni_sock_unlock(nni_sock *); +extern nni_notify *nni_sock_notify(nni_sock *, int, nng_notify_func, void *); +extern void nni_sock_unnotify(nni_sock *, nni_notify *); + // nni_sock_pipe_add is called by the pipe to register the pipe with // with the socket. The pipe is added to the idle list. extern void nni_sock_pipe_add(nni_sock *, nni_pipe *); -- cgit v1.2.3-70-g09d2