diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-04-28 18:45:10 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-05-15 21:00:27 +0200 |
commit | 5f0406534ca4a465d11892a747a38c0e5c884cf2 (patch) | |
tree | d77de6abca80b95d2729ecdb9d72e0f5b5370780 /src/handle_wrap.h | |
parent | 636add246ca78be5c374cfd951c76de7f1010fb9 (diff) | |
download | android-node-v8-5f0406534ca4a465d11892a747a38c0e5c884cf2.tar.gz android-node-v8-5f0406534ca4a465d11892a747a38c0e5c884cf2.tar.bz2 android-node-v8-5f0406534ca4a465d11892a747a38c0e5c884cf2.zip |
process: add _getActiveHandles(), _getActiveRequests()
* process._getActiveHandles() returns a list containing all active handles
(timers, sockets, etc.) that have not been unref'd.
* process._getActiveRequests() returns a list of active requests (in-flight
actions like connecting to a remote host, writing data to a socket, etc.).
Diffstat (limited to 'src/handle_wrap.h')
-rw-r--r-- | src/handle_wrap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/handle_wrap.h b/src/handle_wrap.h index b9cf31e8eb..c6dd4c9d6a 100644 --- a/src/handle_wrap.h +++ b/src/handle_wrap.h @@ -22,6 +22,8 @@ #ifndef HANDLE_WRAP_H_ #define HANDLE_WRAP_H_ +#include "ngx-queue.h" + namespace node { // Rules: @@ -61,7 +63,9 @@ class HandleWrap { v8::Persistent<v8::Object> object_; private: + friend v8::Handle<v8::Value> GetActiveHandles(const v8::Arguments&); static void OnClose(uv_handle_t* handle); + ngx_queue_t handle_wrap_queue_; // Using double underscore due to handle_ member in tcp_wrap. Probably // tcp_wrap should rename it's member to 'handle'. uv_handle_t* handle__; |