diff options
author | Bert Belder <bertbelder@gmail.com> | 2012-06-13 01:35:51 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2012-06-13 01:35:51 +0200 |
commit | e4f4c633706297c3b695a6e590097a1c74ecf7c6 (patch) | |
tree | 2fcb617bafebcc117c8e0fb2b4c6b47b7192a8e9 /deps/uv/src/uv-common.h | |
parent | b866a96cfacf37bf40a9fd7bab6e56868e3c0800 (diff) | |
download | android-node-v8-e4f4c633706297c3b695a6e590097a1c74ecf7c6.tar.gz android-node-v8-e4f4c633706297c3b695a6e590097a1c74ecf7c6.tar.bz2 android-node-v8-e4f4c633706297c3b695a6e590097a1c74ecf7c6.zip |
uv: upgrade to 9f44b0e3
Diffstat (limited to 'deps/uv/src/uv-common.h')
-rw-r--r-- | deps/uv/src/uv-common.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/deps/uv/src/uv-common.h b/deps/uv/src/uv-common.h index c86cb7daa0..4c316ec11d 100644 --- a/deps/uv/src/uv-common.h +++ b/deps/uv/src/uv-common.h @@ -153,4 +153,17 @@ UNUSED static void uv__handle_unref(uv_handle_t* h) { } #define uv__handle_unref(h) uv__handle_unref((uv_handle_t*)(h)) +UNUSED static void uv__handle_init(uv_loop_t* loop, + uv_handle_t* handle, + uv_handle_type type) { + loop->counters.handle_init++; + handle->loop = loop; + handle->type = type; + handle->flags = UV__HANDLE_REF; /* ref the loop when active */ + ngx_queue_insert_tail(&loop->handle_queue, &handle->handle_queue); +#ifndef _WIN32 + handle->next_closing = NULL; +#endif +} + #endif /* UV_COMMON_H_ */ |