From: Ryan Dahl Date: Wed, 17 Nov 2010 19:40:43 +0000 (-0800) Subject: Dump after ev_loop X-Git-Tag: v0.3.2~212^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42357645cb322864d2dade81c6e29ecd42fc7a7f;p=platform%2Fupstream%2Fnodejs.git Dump after ev_loop --- diff --git a/src/node.cc b/src/node.cc index 46c56e2..cdcd66d 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1967,6 +1967,8 @@ int Start(int argc, char *argv[]) { Tick(); + IOWatcher::Dump(); + } while (need_tick_cb || ev_activecnt(EV_DEFAULT_UC) > 0); diff --git a/src/node.js b/src/node.js index 31e7da4..ea445de 100644 --- a/src/node.js +++ b/src/node.js @@ -29,6 +29,10 @@ process.assert = function (x, msg) { var writeError = process.binding('stdio').writeError; +// Need to force-load this binding so that we can IOWatcher::Dump in +// src/node.cc +var IOWatcher = process.binding('io_watcher'); + // nextTick() var nextTickQueue = []; diff --git a/src/node_io_watcher.h b/src/node_io_watcher.h index f1ae3ba..71d7142 100644 --- a/src/node_io_watcher.h +++ b/src/node_io_watcher.h @@ -10,6 +10,7 @@ namespace node { class IOWatcher : ObjectWrap { public: static void Initialize(v8::Handle target); + static void Dump(); protected: static v8::Persistent constructor_template; @@ -35,7 +36,6 @@ class IOWatcher : ObjectWrap { static void Callback(EV_P_ ev_io *watcher, int revents); static void Dump(EV_P_ ev_prepare *watcher, int revents); - static void Dump(); void Start(); void Stop();