summaryrefslogtreecommitdiff
path: root/src/handle_wrap.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-01-30 12:54:53 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2015-02-11 23:06:29 +0100
commit38dc0cd8f43867092ce190db0e8fddae5a6d5f6c (patch)
tree3df685453148bfa0690baaf77151cda20b9e7bd9 /src/handle_wrap.h
parent58eb00c6936ac1a01663b2c363fb493a5e0c00a4 (diff)
downloadandroid-node-v8-38dc0cd8f43867092ce190db0e8fddae5a6d5f6c.tar.gz
android-node-v8-38dc0cd8f43867092ce190db0e8fddae5a6d5f6c.tar.bz2
android-node-v8-38dc0cd8f43867092ce190db0e8fddae5a6d5f6c.zip
src: switch from QUEUE to intrusive list
This commit also breaks up req_wrap.h into req-wrap.h and req-wrap-inl.h to work around a circular dependency issue in env.h. PR-URL: https://github.com/iojs/io.js/pull/667 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'src/handle_wrap.h')
-rw-r--r--src/handle_wrap.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/handle_wrap.h b/src/handle_wrap.h
index 901c12213d..94cfe3d558 100644
--- a/src/handle_wrap.h
+++ b/src/handle_wrap.h
@@ -2,14 +2,14 @@
#define SRC_HANDLE_WRAP_H_
#include "async-wrap.h"
-#include "env.h"
-#include "node.h"
-#include "queue.h"
+#include "util.h"
#include "uv.h"
#include "v8.h"
namespace node {
+class Environment;
+
// Rules:
//
// - Do not throw from handle methods. Set errno.
@@ -51,9 +51,10 @@ class HandleWrap : public AsyncWrap {
virtual ~HandleWrap() override;
private:
+ friend class Environment;
friend void GetActiveHandles(const v8::FunctionCallbackInfo<v8::Value>&);
static void OnClose(uv_handle_t* handle);
- QUEUE handle_wrap_queue_;
+ ListNode<HandleWrap> handle_wrap_queue_;
unsigned int flags_;
// Using double underscore due to handle_ member in tcp_wrap. Probably
// tcp_wrap should rename it's member to 'handle'.