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/event.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/event.h')
| -rw-r--r-- | src/core/event.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/core/event.h b/src/core/event.h index d07aa9dd..e43306c9 100644 --- a/src/core/event.h +++ b/src/core/event.h @@ -18,25 +18,17 @@ struct nng_event { nni_sock * e_sock; nni_ep * e_ep; nni_pipe * e_pipe; - - int e_done; // true when notify thr is finished - int e_pending; // true if event is queued - nni_cv e_cv; // signaled when e_done is noted - nni_list_node e_node; // location on the socket list }; struct nng_notify { - nni_list_node n_node; nng_notify_func n_func; void * n_arg; - int n_mask; + int n_type; + nni_sock * n_sock; + nni_aio n_aio; }; -extern void nni_notifier(void *); extern int nni_ev_init(nni_event *, int, nni_sock *); extern void nni_ev_fini(nni_event *); -extern void nni_ev_submit(nni_event *); // call holding sock lock -extern nni_notify *nni_add_notify(nni_sock *, int, nng_notify_func, void *); -extern void nni_rem_notify(nni_sock *, nni_notify *); #endif // CORE_EVENT_H |
