From 6190caba05694d5ec81a4c97528a3088966fe125 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 22 May 2012 15:08:21 +0200 Subject: [PATCH] unix: remove outdated comment --- src/unix/uv-eio.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/unix/uv-eio.c b/src/unix/uv-eio.c index f9c0f75d..b36eea30 100644 --- a/src/unix/uv-eio.c +++ b/src/unix/uv-eio.c @@ -61,13 +61,8 @@ static void uv_eio_done_poll_notifier_cb(uv_async_t* watcher, int revents) { */ static void uv_eio_want_poll(eio_channel *channel) { /* Signal the main thread that eio_poll need to be processed. */ - - /* - * TODO need to select the correct uv_loop_t and async_send to - * uv_eio_want_poll_notifier. - */ - - uv_async_send(&((uv_loop_t *)channel->data)->uv_eio_want_poll_notifier); + uv_loop_t* loop = channel->data; + uv_async_send(&loop->uv_eio_want_poll_notifier); } @@ -76,7 +71,8 @@ static void uv_eio_done_poll(eio_channel *channel) { * Signal the main thread that we should stop calling eio_poll(). * from the idle watcher. */ - uv_async_send(&((uv_loop_t *)channel->data)->uv_eio_done_poll_notifier); + uv_loop_t* loop = channel->data; + uv_async_send(&loop->uv_eio_done_poll_notifier); }