aboutsummaryrefslogtreecommitdiff
path: root/deps/uv/src/uv-common.c
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-06-01 18:07:22 +0200
committerFedor Indutny <fedor.indutny@gmail.com>2012-06-01 20:19:42 +0400
commit30a0e58d63a8fb48ee47472a52450539e0656df9 (patch)
tree4744205f645394807a4871c83674df22a9ff4bec /deps/uv/src/uv-common.c
parentb337577cf1b8321a8c814a331b046f6a505836af (diff)
downloadandroid-node-v8-30a0e58d63a8fb48ee47472a52450539e0656df9.tar.gz
android-node-v8-30a0e58d63a8fb48ee47472a52450539e0656df9.tar.bz2
android-node-v8-30a0e58d63a8fb48ee47472a52450539e0656df9.zip
uv: upgrade to 87dbffbd
Diffstat (limited to 'deps/uv/src/uv-common.c')
-rw-r--r--deps/uv/src/uv-common.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/uv/src/uv-common.c b/deps/uv/src/uv-common.c
index e81f7a31f1..761133a638 100644
--- a/deps/uv/src/uv-common.c
+++ b/deps/uv/src/uv-common.c
@@ -317,6 +317,18 @@ int uv_thread_create(uv_thread_t *tid, void (*entry)(void *arg), void *arg) {
}
+void uv_walk(uv_loop_t* loop, uv_walk_cb walk_cb, void* arg) {
+ ngx_queue_t* q;
+ uv_handle_t* h;
+
+ ngx_queue_foreach(q, &loop->handle_queue) {
+ h = ngx_queue_data(q, uv_handle_t, handle_queue);
+ if (h->flags & UV__HANDLE_INTERNAL) continue;
+ walk_cb(h, arg);
+ }
+}
+
+
void uv_ref(uv_handle_t* handle) {
uv__handle_ref(handle);
}