Lines Matching refs:handle
26 int uv_##name##_init(uv_loop_t* loop, uv_##name##_t* handle) { \
27 uv__handle_init(loop, (uv_handle_t*)handle, UV_##type); \
28 handle->name##_cb = NULL; \
32 int uv_##name##_start(uv_##name##_t* handle, uv_##name##_cb cb) { \
33 if (uv__is_active(handle)) return 0; \
35 uv__queue_insert_head(&handle->loop->name##_handles, &handle->queue); \
36 handle->name##_cb = cb; \
37 uv__handle_start(handle); \
41 int uv_##name##_stop(uv_##name##_t* handle) { \
42 if (!uv__is_active(handle)) return 0; \
43 uv__queue_remove(&handle->queue); \
44 uv__handle_stop(handle); \
62 void uv__##name##_close(uv_##name##_t* handle) { \
63 uv_##name##_stop(handle); \