Lines Matching defs:loop

159     /* Create another file on a different event loop tick.  We do it this way
185 /* Remove another file on a different event loop tick. We do it this way
235 /* Create another file on a different event loop tick. We do it this way
261 /* Remove another file on a different event loop tick. We do it this way
414 uv_loop_t* loop = uv_default_loop();
424 r = uv_fs_event_init(loop, &fs_event);
428 r = uv_timer_init(loop, &timer);
433 uv_run(loop, UV_RUN_DEFAULT);
444 MAKE_VALGRIND_HAPPY(loop);
453 uv_loop_t* loop;
458 loop = uv_default_loop();
467 r = uv_fs_event_init(loop, &fs_event);
474 r = uv_timer_init(loop, &timer);
482 r = uv_fs_event_init(loop, &fs_event_root);
495 uv_run(loop, UV_RUN_DEFAULT);
508 MAKE_VALGRIND_HAPPY(loop);
517 uv_loop_t* loop;
523 loop = uv_default_loop();
535 r = uv_fs_event_init(loop, &fs_event);
539 r = uv_timer_init(loop, &timer);
544 uv_run(loop, UV_RUN_DEFAULT);
555 MAKE_VALGRIND_HAPPY(loop);
570 uv_loop_t* loop = uv_default_loop();
581 r = uv_fs_event_init(loop, &fs_event);
585 r = uv_timer_init(loop, &timer);
590 uv_run(loop, UV_RUN_DEFAULT);
601 MAKE_VALGRIND_HAPPY(loop);
615 uv_loop_t* loop;
618 loop = uv_default_loop();
634 uv_update_time(loop);
637 r = uv_fs_event_init(loop, &fs_event);
641 r = uv_timer_init(loop, &timer);
645 r = uv_run(loop, UV_RUN_DEFAULT);
654 MAKE_VALGRIND_HAPPY(loop);
665 uv_loop_t* loop;
667 loop = uv_default_loop();
670 ASSERT_OK(uv_fs_event_init(loop, watchers + 0));
672 ASSERT_OK(uv_fs_event_init(loop, watchers + 1));
674 ASSERT_OK(uv_timer_init(loop, &timer));
676 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT));
678 MAKE_VALGRIND_HAPPY(loop);
687 uv_loop_t* loop;
690 loop = uv_default_loop();
700 uv_update_time(loop);
703 r = uv_fs_event_init(loop, &fs_event);
712 r = uv_timer_init(loop, &timer);
723 uv_run(loop, UV_RUN_DEFAULT);
733 MAKE_VALGRIND_HAPPY(loop);
739 uv_loop_t* loop;
748 loop = uv_default_loop();
750 r = uv_fs_event_init(loop, &fs_event);
759 MAKE_VALGRIND_HAPPY(loop);
769 uv_loop_t* loop = uv_default_loop();
778 r = uv_fs_event_init(loop, &fs_event);
789 uv_run(loop, UV_RUN_DEFAULT);
798 MAKE_VALGRIND_HAPPY(loop);
807 uv_loop_t* loop = uv_default_loop();
816 r = uv_fs_event_init(loop, &fs_event);
826 uv_run(loop, UV_RUN_DEFAULT);
835 MAKE_VALGRIND_HAPPY(loop);
843 r = uv_fs_event_init(handle->loop, &fs_event);
858 uv_loop_t* loop;
861 loop = uv_default_loop();
863 r = uv_timer_init(loop, &timer);
869 uv_run(loop, UV_RUN_DEFAULT);
873 MAKE_VALGRIND_HAPPY(loop);
882 uv_loop_t* loop;
885 loop = uv_default_loop();
890 r = uv_fs_event_init(loop, &fs_event);
900 uv_run(loop, UV_RUN_DEFAULT);
908 MAKE_VALGRIND_HAPPY(loop);
916 uv_loop_t* loop;
919 loop = uv_default_loop();
924 r = uv_fs_event_init(loop, &fs_event);
935 uv_update_time(loop);
939 uv_run(loop, UV_RUN_DEFAULT);
946 MAKE_VALGRIND_HAPPY(loop);
958 uv_loop_t* loop;
961 loop = uv_default_loop();
966 r = uv_fs_event_init(loop, &fs_event);
971 r = uv_timer_init(loop, &timer);
976 uv_run(loop, UV_RUN_DEFAULT);
980 uv_run(loop, UV_RUN_ONCE);
989 MAKE_VALGRIND_HAPPY(loop);
997 uv_loop_t* loop;
1002 loop = uv_default_loop();
1006 r = uv_fs_event_init(loop, &fs_event1);
1011 r = uv_fs_event_init(loop, &fs_event2);
1019 uv_run(loop, UV_RUN_DEFAULT);
1024 MAKE_VALGRIND_HAPPY(loop);
1032 uv_loop_t* loop = uv_default_loop();
1050 r = uv_fs_event_init(loop, &fs_event);
1070 uv_run(loop, UV_RUN_DEFAULT);
1077 MAKE_VALGRIND_HAPPY(loop);
1110 uv_loop_t* loop;
1123 loop = &loops[i];
1124 ASSERT_OK(uv_loop_init(loop));
1129 ASSERT_OK(uv_fs_event_init(loop, event));
1136 /* Let loop run for some time */
1137 ASSERT_OK(uv_timer_init(loop, &timer));
1139 uv_run(loop, UV_RUN_DEFAULT);
1146 /* At least one loop should fail */
1151 loop = &loops[i];
1159 uv_run(loop, UV_RUN_DEFAULT);
1162 uv_loop_close(loop);
1186 uv_loop_t* loop;
1189 loop = uv_default_loop();
1190 r = uv_fs_event_init(loop, &fs_event);
1198 MAKE_VALGRIND_HAPPY(loop);