Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: mark eio poll handles as internal
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed May 30, 2012
1 parent 171ad85 commit 71a66c1
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/unix/uv-eio.c
Expand Up @@ -22,6 +22,7 @@

#include "uv.h"
#include "eio.h"
#include "internal.h"

#include <assert.h>
#include <stdio.h>
Expand Down Expand Up @@ -87,13 +88,18 @@ void uv_eio_init(uv_loop_t* loop) {

uv_idle_init(loop, &loop->uv_eio_poller);
uv_idle_start(&loop->uv_eio_poller, uv_eio_do_poll);
loop->uv_eio_poller.flags |= UV__HANDLE_INTERNAL;

loop->uv_eio_want_poll_notifier.data = loop;
uv_async_init(loop, &loop->uv_eio_want_poll_notifier,
uv_eio_want_poll_notifier_cb);

uv_async_init(loop, &loop->uv_eio_done_poll_notifier,
uv_eio_done_poll_notifier_cb);
uv_async_init(loop,
&loop->uv_eio_want_poll_notifier,
uv_eio_want_poll_notifier_cb);
loop->uv_eio_want_poll_notifier.flags |= UV__HANDLE_INTERNAL;

uv_async_init(loop,
&loop->uv_eio_done_poll_notifier,
uv_eio_done_poll_notifier_cb);
loop->uv_eio_done_poll_notifier.flags |= UV__HANDLE_INTERNAL;

uv_once(&uv__eio_init_once_guard, uv__eio_init);
}

0 comments on commit 71a66c1

Please sign in to comment.