Lines Matching defs:ptrLoop
730 bool TryCloseLoop(uv_loop_t *ptrLoop, const char *callerName)
741 if (uv_loop_close(ptrLoop) == UV_EBUSY) {
746 if (ptrLoop->active_handles >= 2) { // 2:at least 2 handles for read & write.
750 uv_walk(ptrLoop, clearLoopTask, nullptr);
752 if (!ptrLoop->active_handles) {
756 if (!uv_run(ptrLoop, UV_RUN_ONCE)) {
771 bool TryCloseChildLoop(uv_loop_t *ptrLoop, const char *callerName)
782 if (uv_loop_close(ptrLoop) == UV_EBUSY) {
787 if (ptrLoop->active_handles >= 2) { // 2:at least 2 handles for read & write.
791 uv_walk(ptrLoop, clearLoopTask, nullptr);
794 if (!ptrLoop->active_handles) {
798 if (!uv_run(ptrLoop, UV_RUN_ONCE)) {
808 r = uv_run(ptrLoop, UV_RUN_NOWAIT);