diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-03-11 22:38:21 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-03-11 22:38:21 -0800 |
| commit | 3d4be5126f91978b7d7349de79334ecfc8fc2afe (patch) | |
| tree | c8cfadbb1096e99cad21bddbb9fe9ff7b5dd175a /src/core/socket.h | |
| parent | 3d90bae8eda62fecdf367932fca591b965838e20 (diff) | |
| download | nng-3d4be5126f91978b7d7349de79334ecfc8fc2afe.tar.gz nng-3d4be5126f91978b7d7349de79334ecfc8fc2afe.tar.bz2 nng-3d4be5126f91978b7d7349de79334ecfc8fc2afe.zip | |
Notification working - separate thread now.
Diffstat (limited to 'src/core/socket.h')
| -rw-r--r-- | src/core/socket.h | 9 |
1 files changed, 3 insertions, 6 deletions
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 *); |
