Lines Matching refs:ptrLoop
344 bool TryCloseLoop(uv_loop_t *ptrLoop, const char *callerName) in TryCloseLoop() argument
355 if (uv_loop_close(ptrLoop) == UV_EBUSY) { in TryCloseLoop()
360 if (ptrLoop->active_handles >= 2) { // 2:at least 2 handles for read & write. in TryCloseLoop()
364 uv_walk(ptrLoop, clearLoopTask, nullptr); in TryCloseLoop()
366 if (!ptrLoop->active_handles) { in TryCloseLoop()
370 if (!uv_run(ptrLoop, UV_RUN_ONCE)) { in TryCloseLoop()
385 bool TryCloseChildLoop(uv_loop_t *ptrLoop, const char *callerName) in TryCloseChildLoop() argument
396 if (uv_loop_close(ptrLoop) == UV_EBUSY) { in TryCloseChildLoop()
401 if (ptrLoop->active_handles >= 2) { // 2:at least 2 handles for read & write. in TryCloseChildLoop()
405 uv_walk(ptrLoop, clearLoopTask, nullptr); in TryCloseChildLoop()
408 if (!ptrLoop->active_handles) { in TryCloseChildLoop()
412 if (!uv_run(ptrLoop, UV_RUN_ONCE)) { in TryCloseChildLoop()
422 r = uv_run(ptrLoop, UV_RUN_ONCE); in TryCloseChildLoop()