From 3d90bae8eda62fecdf367932fca591b965838e20 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 11 Mar 2017 20:50:21 -0800 Subject: Removing some dead code. --- src/core/event.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'src/core/event.c') 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; @@ -59,17 +66,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) { -- cgit v1.2.3-70-g09d2