Lines Matching refs:handle
32 HANDLE handle; in uv_guess_handle() local
39 handle = uv__get_osfhandle(file); in uv_guess_handle()
41 switch (GetFileType(handle)) { in uv_guess_handle()
43 if (GetConsoleMode(handle, &mode)) { in uv_guess_handle()
61 int uv_is_active(const uv_handle_t* handle) { in uv_is_active() argument
62 return (handle->flags & UV_HANDLE_ACTIVE) && in uv_is_active()
63 !(handle->flags & UV_HANDLE_CLOSING); in uv_is_active()
67 void uv_close(uv_handle_t* handle, uv_close_cb cb) { in uv_close() argument
68 uv_loop_t* loop = handle->loop; in uv_close()
70 if (handle->flags & UV_HANDLE_CLOSING) { in uv_close()
75 handle->close_cb = cb; in uv_close()
78 switch (handle->type) { in uv_close()
80 uv__tcp_close(loop, (uv_tcp_t*)handle); in uv_close()
84 uv__pipe_close(loop, (uv_pipe_t*) handle); in uv_close()
88 uv__tty_close((uv_tty_t*) handle); in uv_close()
92 uv__udp_close(loop, (uv_udp_t*) handle); in uv_close()
96 uv__poll_close(loop, (uv_poll_t*) handle); in uv_close()
100 uv_timer_stop((uv_timer_t*)handle); in uv_close()
101 uv__handle_closing(handle); in uv_close()
102 uv__want_endgame(loop, handle); in uv_close()
106 uv_prepare_stop((uv_prepare_t*)handle); in uv_close()
107 uv__handle_closing(handle); in uv_close()
108 uv__want_endgame(loop, handle); in uv_close()
112 uv_check_stop((uv_check_t*)handle); in uv_close()
113 uv__handle_closing(handle); in uv_close()
114 uv__want_endgame(loop, handle); in uv_close()
118 uv_idle_stop((uv_idle_t*)handle); in uv_close()
119 uv__handle_closing(handle); in uv_close()
120 uv__want_endgame(loop, handle); in uv_close()
124 uv__async_close(loop, (uv_async_t*) handle); in uv_close()
128 uv__signal_close(loop, (uv_signal_t*) handle); in uv_close()
132 uv__process_close(loop, (uv_process_t*) handle); in uv_close()
136 uv__fs_event_close(loop, (uv_fs_event_t*) handle); in uv_close()
140 uv__fs_poll_close((uv_fs_poll_t*) handle); in uv_close()
141 uv__handle_closing(handle); in uv_close()
151 int uv_is_closing(const uv_handle_t* handle) { in uv_is_closing() argument
152 return !!(handle->flags & (UV_HANDLE_CLOSING | UV_HANDLE_CLOSED)); in uv_is_closing()