From 5f0406534ca4a465d11892a747a38c0e5c884cf2 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 28 Apr 2012 18:45:10 +0200 Subject: 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.). --- src/handle_wrap.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/handle_wrap.h') 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 object_; private: + friend v8::Handle 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__; -- cgit v1.2.3