Lines Matching refs:h

252 #define uv__active_handle_add(h)                                              \  argument
254 (h)->loop->active_handles++; \
258 #define uv__active_handle_rm(h) \ argument
260 (h)->loop->active_handles--; \
264 #define uv__is_active(h) \ argument
265 (((h)->flags & UV_HANDLE_ACTIVE) != 0)
267 #define uv__is_closing(h) \ argument
268 (((h)->flags & (UV_HANDLE_CLOSING | UV_HANDLE_CLOSED)) != 0)
271 # define uv__is_stream_shutting(h) \ argument
272 (h->stream.conn.shutdown_req != NULL)
274 # define uv__is_stream_shutting(h) \ argument
275 (h->shutdown_req != NULL)
278 #define uv__handle_start(h) \ argument
280 if (((h)->flags & UV_HANDLE_ACTIVE) != 0) break; \
281 (h)->flags |= UV_HANDLE_ACTIVE; \
282 if (((h)->flags & UV_HANDLE_REF) != 0) uv__active_handle_add(h); \
286 #define uv__handle_stop(h) \ argument
288 if (((h)->flags & UV_HANDLE_ACTIVE) == 0) break; \
289 (h)->flags &= ~UV_HANDLE_ACTIVE; \
290 if (((h)->flags & UV_HANDLE_REF) != 0) uv__active_handle_rm(h); \
294 #define uv__handle_ref(h) \ argument
296 if (((h)->flags & UV_HANDLE_REF) != 0) break; \
297 (h)->flags |= UV_HANDLE_REF; \
298 if (((h)->flags & UV_HANDLE_CLOSING) != 0) break; \
299 if (((h)->flags & UV_HANDLE_ACTIVE) != 0) uv__active_handle_add(h); \
303 #define uv__handle_unref(h) \ argument
305 if (((h)->flags & UV_HANDLE_REF) == 0) break; \
306 (h)->flags &= ~UV_HANDLE_REF; \
307 if (((h)->flags & UV_HANDLE_CLOSING) != 0) break; \
308 if (((h)->flags & UV_HANDLE_ACTIVE) != 0) uv__active_handle_rm(h); \
312 #define uv__has_ref(h) \ argument
313 (((h)->flags & UV_HANDLE_REF) != 0)
316 # define uv__handle_platform_init(h) ((h)->u.fd = -1) argument
318 # define uv__handle_platform_init(h) ((h)->next_closing = NULL) argument
321 #define uv__handle_init(loop_, h, type_) \ argument
323 (h)->loop = (loop_); \
324 (h)->type = (type_); \
325 (h)->flags = UV_HANDLE_REF; /* Ref the loop when active. */ \
326 uv__queue_insert_tail(&(loop_)->handle_queue, &(h)->handle_queue); \
327 uv__handle_platform_init(h); \