Lines Matching refs:tasks

41     fit::subtle::scheduler::task_queue tasks;  in schedule_task()  local
46 scheduler.take_runnable_tasks(&tasks); in schedule_task()
47 EXPECT_TRUE(tasks.empty()); in schedule_task()
54 scheduler.take_runnable_tasks(&tasks); in schedule_task()
55 EXPECT_EQ(1, tasks.size()); in schedule_task()
56 tasks.front()(context); in schedule_task()
58 tasks.pop(); in schedule_task()
67 scheduler.take_runnable_tasks(&tasks); in schedule_task()
68 EXPECT_EQ(3, tasks.size()); in schedule_task()
69 tasks.front()(context); in schedule_task()
73 tasks.pop(); in schedule_task()
74 tasks.front()(context); in schedule_task()
78 tasks.pop(); in schedule_task()
79 tasks.front()(context); in schedule_task()
83 tasks.pop(); in schedule_task()
86 scheduler.take_runnable_tasks(&tasks); in schedule_task()
87 EXPECT_TRUE(tasks.empty()); in schedule_task()
196 fit::subtle::scheduler::task_queue tasks; in ticket_obtain2_duplicate_finalize_resume() local
197 scheduler.take_runnable_tasks(&tasks); in ticket_obtain2_duplicate_finalize_resume()
198 EXPECT_EQ(1, tasks.size()); in ticket_obtain2_duplicate_finalize_resume()
201 tasks.front()(context); in ticket_obtain2_duplicate_finalize_resume()
257 fit::subtle::scheduler::task_queue tasks; in ticket_obtain2_resume_finalize() local
258 scheduler.take_runnable_tasks(&tasks); in ticket_obtain2_resume_finalize()
259 EXPECT_EQ(1, tasks.size()); in ticket_obtain2_resume_finalize()
262 tasks.front()(context); in ticket_obtain2_resume_finalize()
272 fit::subtle::scheduler::task_queue tasks; in take_all_tasks() local
277 scheduler.take_all_tasks(&tasks); in take_all_tasks()
278 EXPECT_TRUE(tasks.empty()); in take_all_tasks()
336 scheduler.take_all_tasks(&tasks); in take_all_tasks()
342 EXPECT_EQ(4, tasks.size()); in take_all_tasks()
343 while (!tasks.empty()) { in take_all_tasks()
344 tasks.front()(context); in take_all_tasks()
345 tasks.pop(); in take_all_tasks()
355 scheduler.take_all_tasks(&tasks); in take_all_tasks()
359 EXPECT_TRUE(tasks.empty()); in take_all_tasks()