summaryrefslogtreecommitdiff
path: root/src/handle_wrap.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-03-06 15:24:20 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-03-06 15:25:07 +0100
commit3d20905b7055dec006041c1fda0094bef17c80ee (patch)
tree54cbe6d46dae16bec8894c4781ccba387790c13f /src/handle_wrap.h
parent3dbbfd78030d07acf9b5d0e9c61113ff315a783a (diff)
downloadandroid-node-v8-3d20905b7055dec006041c1fda0094bef17c80ee.tar.gz
android-node-v8-3d20905b7055dec006041c1fda0094bef17c80ee.tar.bz2
android-node-v8-3d20905b7055dec006041c1fda0094bef17c80ee.zip
handle_wrap: replace unref_ field with flags_ field
Prep work for a follow-up commit that adds support for close callbacks.
Diffstat (limited to 'src/handle_wrap.h')
-rw-r--r--src/handle_wrap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/handle_wrap.h b/src/handle_wrap.h
index 951b9386f5..c77ec77f1a 100644
--- a/src/handle_wrap.h
+++ b/src/handle_wrap.h
@@ -70,7 +70,9 @@ class HandleWrap {
// Using double underscore due to handle_ member in tcp_wrap. Probably
// tcp_wrap should rename it's member to 'handle'.
uv_handle_t* handle__;
- bool unref_;
+ unsigned int flags_;
+
+ static const unsigned int kUnref = 1;
};