diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-01-30 12:54:53 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2015-02-11 23:06:29 +0100 |
commit | 38dc0cd8f43867092ce190db0e8fddae5a6d5f6c (patch) | |
tree | 3df685453148bfa0690baaf77151cda20b9e7bd9 /src/handle_wrap.h | |
parent | 58eb00c6936ac1a01663b2c363fb493a5e0c00a4 (diff) | |
download | node-new-38dc0cd8f43867092ce190db0e8fddae5a6d5f6c.tar.gz |
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.h | 9 |
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'. |