From 38dc0cd8f43867092ce190db0e8fddae5a6d5f6c Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 30 Jan 2015 12:54:53 +0100 Subject: 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 Reviewed-By: Trevor Norris --- src/handle_wrap.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/handle_wrap.h') 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&); static void OnClose(uv_handle_t* handle); - QUEUE handle_wrap_queue_; + ListNode 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'. -- cgit v1.2.1