summaryrefslogtreecommitdiff
path: root/src/timers.cc
diff options
context:
space:
mode:
authorRyan <ry@tinyclouds.org>2009-04-28 22:37:03 +0200
committerRyan <ry@tinyclouds.org>2009-04-28 22:37:03 +0200
commit90fc8d36220c0d66c352ee5f72080b8592d310d5 (patch)
tree837d10009bb680ba57db33a08a5223800938c2ae /src/timers.cc
parent8e7bbf26e2b5e616c61b896e7992af871c4fb94f (diff)
downloadandroid-node-v8-90fc8d36220c0d66c352ee5f72080b8592d310d5.tar.gz
android-node-v8-90fc8d36220c0d66c352ee5f72080b8592d310d5.tar.bz2
android-node-v8-90fc8d36220c0d66c352ee5f72080b8592d310d5.zip
Update liboi. Use EV_MULTIPLICITY=0.
This might need to be changed in the future if ev is needed in thread pools or extension libraries. However for now it makes sense to just use a single loop.
Diffstat (limited to 'src/timers.cc')
-rw-r--r--src/timers.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timers.cc b/src/timers.cc
index 967cfb27e1..a427b22f6b 100644
--- a/src/timers.cc
+++ b/src/timers.cc
@@ -68,12 +68,12 @@ Timer::Timer (Handle<Function> callback, ev_tstamp after, ev_tstamp repeat)
ev_timer_init(&watcher_, Timer::OnTimeout, after, repeat);
watcher_.data = this;
- ev_timer_start(node_loop(), &watcher_);
+ ev_timer_start(EV_DEFAULT_UC_ &watcher_);
}
Timer::~Timer ()
{
- ev_timer_stop (node_loop(), &watcher_);
+ ev_timer_stop (EV_DEFAULT_UC_ &watcher_);
handle_->SetInternalField(0, Undefined());
handle_.Dispose();
}