diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-12-22 13:40:26 -0800 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2011-12-29 01:56:11 +0100 |
commit | 20ba454ef9e8ff2bb19abb26f9b95265beb98e11 (patch) | |
tree | 484b3a5d4ab97897012ef1e768af9e9ea424600a /src/handle_wrap.cc | |
parent | dd0188ec088fc87ee689e4efa193e241199de615 (diff) | |
download | android-node-v8-20ba454ef9e8ff2bb19abb26f9b95265beb98e11.tar.gz android-node-v8-20ba454ef9e8ff2bb19abb26f9b95265beb98e11.tar.bz2 android-node-v8-20ba454ef9e8ff2bb19abb26f9b95265beb98e11.zip |
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
Diffstat (limited to 'src/handle_wrap.cc')
-rw-r--r-- | src/handle_wrap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/handle_wrap.cc b/src/handle_wrap.cc index 2aff643eb3..f661885d9f 100644 --- a/src/handle_wrap.cc +++ b/src/handle_wrap.cc @@ -21,7 +21,7 @@ #include <node.h> #include <handle_wrap.h> -#include <node_isolate.h> +#include <node_vars.h> namespace node { @@ -71,7 +71,7 @@ Handle<Value> HandleWrap::Unref(const Arguments& args) { } wrap->unref = true; - uv_unref(NODE_LOOP()); + uv_unref(Loop()); return v8::Undefined(); } |