diff options
author | isaacs <i@izs.me> | 2012-05-24 14:26:32 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-05-24 14:26:32 -0700 |
commit | 24de89bd0e47cb657afa386fa7b2d2ae94309254 (patch) | |
tree | 8c02717c994d5e99a7d089550d7a95562669c56a /deps/uv/src/unix/loop.c | |
parent | b4ed3c19697e875c289363381498a896347cbca6 (diff) | |
download | android-node-v8-24de89bd0e47cb657afa386fa7b2d2ae94309254.tar.gz android-node-v8-24de89bd0e47cb657afa386fa7b2d2ae94309254.tar.bz2 android-node-v8-24de89bd0e47cb657afa386fa7b2d2ae94309254.zip |
Upgrade uv to 604802a
Diffstat (limited to 'deps/uv/src/unix/loop.c')
-rw-r--r-- | deps/uv/src/unix/loop.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/deps/uv/src/unix/loop.c b/deps/uv/src/unix/loop.c index 08b34994fc..14743daaf8 100644 --- a/deps/uv/src/unix/loop.c +++ b/deps/uv/src/unix/loop.c @@ -77,40 +77,3 @@ void uv__loop_delete(uv_loop_t* loop) { close(loop->fs_fd); #endif } - - -#define X(name, type) \ - int uv_##name##_init(uv_loop_t* loop, uv_##name##_t* handle) { \ - uv__handle_init(loop, (uv_handle_t*)handle, type); \ - loop->counters.name##_init++; \ - handle->name##_cb = NULL; \ - return 0; \ - } \ - int uv_##name##_start(uv_##name##_t* handle, uv_##name##_cb cb) { \ - if (uv__is_active(handle)) return 0; \ - ngx_queue_insert_head(&handle->loop->name##_handles, &handle->queue); \ - handle->name##_cb = cb; \ - uv__handle_start(handle); \ - return 0; \ - } \ - int uv_##name##_stop(uv_##name##_t* handle) { \ - if (!uv__is_active(handle)) return 0; \ - ngx_queue_remove(&handle->queue); \ - uv__handle_stop(handle); \ - return 0; \ - } \ - void uv__run_##name(uv_loop_t* loop) { \ - uv_##name##_t* h; \ - ngx_queue_t* q; \ - ngx_queue_foreach(q, &loop->name##_handles) { \ - h = ngx_queue_data(q, uv_##name##_t, queue); \ - if (h->name##_cb) h->name##_cb(h, 0); \ - } \ - } \ - void uv__##name##_close(uv_##name##_t* handle) { \ - uv_##name##_stop(handle); \ - } -X(idle, UV_IDLE) -X(check, UV_CHECK) -X(prepare, UV_PREPARE) -#undef X |