Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
check_tick_watcher to use libuv
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed May 13, 2011
1 parent a46c63b commit 91bd144
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/node.cc
Expand Up @@ -113,7 +113,7 @@ static bool cov = false;
static int debug_port=5858;
static int max_stack_size = 0;

static ev_check check_tick_watcher;
static uv_handle_t check_tick_watcher;
static uv_handle_t prepare_tick_watcher;
static uv_handle_t tick_spinner;
static bool need_tick_cb;
Expand Down Expand Up @@ -257,9 +257,9 @@ static void PrepareTick(uv_handle_t* handle, int status) {
}


static void CheckTick(EV_P_ ev_check *watcher, int revents) {
assert(watcher == &check_tick_watcher);
assert(revents == EV_CHECK);
static void CheckTick(uv_handle_t* handle, int status) {
assert(handle == &check_tick_watcher);
assert(status == 0);
Tick();
}

Expand Down Expand Up @@ -2358,11 +2358,11 @@ char** Init(int argc, char *argv[]) {

uv_prepare_init(&node::prepare_tick_watcher, NULL, NULL);
uv_prepare_start(&node::prepare_tick_watcher, PrepareTick);
uv_unref(EV_DEFAULT_UC);
uv_unref();

ev_check_init(&node::check_tick_watcher, node::CheckTick);
ev_check_start(EV_DEFAULT_UC_ &node::check_tick_watcher);
ev_unref(EV_DEFAULT_UC);
uv_check_init(&node::check_tick_watcher, NULL, NULL);
uv_check_start(&node::check_tick_watcher, node::CheckTick);
uv_unref();

uv_idle_init(&node::tick_spinner, NULL, NULL);

Expand Down

0 comments on commit 91bd144

Please sign in to comment.