Lines Matching defs:handle

27 #include "win/handle-inl.h"
54 static void timer_close_cb(uv_handle_t* handle);
59 int uv_fs_poll_init(uv_loop_t* loop, uv_fs_poll_t* handle) {
60 uv__handle_init(loop, (uv_handle_t*)handle, UV_FS_POLL);
61 handle->poll_ctx = NULL;
66 int uv_fs_poll_start(uv_fs_poll_t* handle,
75 if (uv_is_active((uv_handle_t*)handle))
78 loop = handle->loop;
89 ctx->parent_handle = handle;
103 if (handle->poll_ctx != NULL)
104 ctx->previous = handle->poll_ctx;
105 handle->poll_ctx = ctx;
106 uv__handle_start(handle);
116 int uv_fs_poll_stop(uv_fs_poll_t* handle) {
119 if (!uv_is_active((uv_handle_t*)handle))
122 ctx = handle->poll_ctx;
124 assert(ctx->parent_handle == handle);
132 uv__handle_stop(handle);
138 int uv_fs_poll_getpath(uv_fs_poll_t* handle, char* buffer, size_t* size) {
142 if (!uv_is_active((uv_handle_t*)handle)) {
147 ctx = handle->poll_ctx;
164 void uv__fs_poll_close(uv_fs_poll_t* handle) {
165 uv_fs_poll_stop(handle);
167 if (handle->poll_ctx == NULL)
168 uv__make_close_pending((uv_handle_t*)handle);
189 uv_fs_poll_t* handle;
192 handle = ctx->parent_handle;
194 if (!uv_is_active((uv_handle_t*)handle) || uv__is_closing(handle))
220 if (!uv_is_active((uv_handle_t*)handle) || uv__is_closing(handle)) {
238 uv_fs_poll_t* handle;
241 handle = ctx->parent_handle;
242 if (ctx == handle->poll_ctx) {
243 handle->poll_ctx = ctx->previous;
244 if (handle->poll_ctx == NULL && uv__is_closing(handle))
245 uv__make_close_pending((uv_handle_t*)handle);
247 for (last = handle->poll_ctx, it = last->previous;
279 #include "win/handle-inl.h"
281 void uv__fs_poll_endgame(uv_loop_t* loop, uv_fs_poll_t* handle) {
282 assert(handle->flags & UV_HANDLE_CLOSING);
283 assert(!(handle->flags & UV_HANDLE_CLOSED));
284 uv__handle_close(handle);