Home
last modified time | relevance | path

Searched refs:ds_timer (Results 1 – 1 of 1) sorted by relevance

/xnu-12377.81.4/tests/
H A Dmemorystatus_zone_test.c74 static dispatch_source_t ds_timer = NULL; variable
355 if (ds_timer != NULL) { in begin_test_teardown()
356 dispatch_source_cancel(ds_timer); in begin_test_teardown()
396 if (ds_timer != NULL) { in cleanup_and_end_test()
397 dispatch_source_cancel(ds_timer); in cleanup_and_end_test()
700ds_timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, dispatch_queue_create("timer_q… in run_test()
701 T_QUIET; T_ASSERT_NOTNULL(ds_timer, "dispatch_source_create: timer"); in run_test()
702 …dispatch_source_set_timer(ds_timer, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC), NSEC_PER_SEC, … in run_test()
704 dispatch_source_set_event_handler(ds_timer, ^{ in run_test()
707 dispatch_activate(ds_timer); in run_test()