diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-03-11 20:50:21 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-03-11 20:50:21 -0800 |
| commit | 3d90bae8eda62fecdf367932fca591b965838e20 (patch) | |
| tree | 31ba290a4fe1a1eae570e6cfb45a76cc936b8834 /src/core/event.c | |
| parent | 97fb819ccfd0d4cb7f02d7fc521d9478ba050776 (diff) | |
| download | nng-3d90bae8eda62fecdf367932fca591b965838e20.tar.gz nng-3d90bae8eda62fecdf367932fca591b965838e20.tar.bz2 nng-3d90bae8eda62fecdf367932fca591b965838e20.zip | |
Removing some dead code.
Diffstat (limited to 'src/core/event.c')
| -rw-r--r-- | src/core/event.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/core/event.c b/src/core/event.c index 73bc1c00..98156a92 100644 --- a/src/core/event.c +++ b/src/core/event.c @@ -49,6 +49,13 @@ nni_ev_submit(nni_event *event) return; } + // XXX: taskq_dispatch the event processing. + // This probably should bump a reference count on the socket + // first. + // XXX: One question of note... the aio structures we use elsewhere + // would be better than this. So instead of the handler doing two + // context switches we can just do one. + // Call with socket mutex owned! if (event->e_pending == 0) { event->e_pending = 1; @@ -60,17 +67,6 @@ nni_ev_submit(nni_event *event) void -nni_ev_wait(nni_event *event) -{ - // Call with socket mutex owned! - // Note that the socket mutex is dropped during the call. - while ((event->e_pending) && (!event->e_done)) { - nni_cv_wait(&event->e_cv); - } -} - - -void nni_notifier(void *arg) { nni_sock *sock = arg; |
