Home
last modified time | relevance | path

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

/external/libchrome/base/threading/
Dworker_pool_posix.cc86 PendingTask pending_task = pool_->WaitForTask(); in ThreadMain() local
87 if (pending_task.task.is_null()) in ThreadMain()
90 "src_file", pending_task.posted_from.file_name(), in ThreadMain()
91 "src_func", pending_task.posted_from.function_name()); in ThreadMain()
95 pending_task.task.Run(); in ThreadMain()
99 pending_task.birth_tally, pending_task.time_posted, stopwatch); in ThreadMain()
146 PendingTask pending_task(from_here, task); in PostTask() local
147 AddTask(&pending_task); in PostTask()
150 void PosixDynamicThreadPool::AddTask(PendingTask* pending_task) { in AddTask() argument
155 pending_tasks_.push(*pending_task); in AddTask()
[all …]
Dworker_pool_posix.h75 void AddTask(PendingTask* pending_task);
/external/libchrome/base/debug/
Dtask_annotator.cc22 const PendingTask& pending_task) { in DidQueueTask() argument
25 TRACE_ID_MANGLE(GetTaskTraceID(pending_task)), in DidQueueTask()
30 const PendingTask& pending_task) { in RunTask() argument
34 stopwatch.StartTime() - pending_task.EffectiveTimePosted(); in RunTask()
38 TRACE_ID_MANGLE(GetTaskTraceID(pending_task)), in RunTask()
48 const void* program_counter = pending_task.posted_from.program_counter(); in RunTask()
51 pending_task.task.Run(); in RunTask()
55 pending_task, stopwatch); in RunTask()
Dtask_annotator_unittest.cc22 PendingTask pending_task(FROM_HERE, Bind(&TestTask, &result)); in TEST() local
25 annotator.DidQueueTask("TaskAnnotatorTest::Queue", pending_task); in TEST()
27 annotator.RunTask("TaskAnnotatorTest::Queue", pending_task); in TEST()
Dtask_annotator.h27 const PendingTask& pending_task);
31 void RunTask(const char* queue_function, const PendingTask& pending_task);
/external/libchrome/base/message_loop/
Dmessage_loop.cc459 PendingTask pending_task = deferred_non_nestable_work_queue_.front(); in ProcessNextDelayedNonNestableTask() local
462 RunTask(pending_task); in ProcessNextDelayedNonNestableTask()
466 void MessageLoop::RunTask(const PendingTask& pending_task) { in RunTask() argument
470 if (pending_task.is_high_res) { in RunTask()
481 TRACE_TASK_EXECUTION("MessageLoop::RunTask", pending_task); in RunTask()
484 WillProcessTask(pending_task)); in RunTask()
485 task_annotator_.RunTask("MessageLoop::PostTask", pending_task); in RunTask()
487 DidProcessTask(pending_task)); in RunTask()
492 bool MessageLoop::DeferOrRunPendingTask(const PendingTask& pending_task) { in DeferOrRunPendingTask() argument
493 if (pending_task.nestable || run_loop_->run_depth_ == 1) { in DeferOrRunPendingTask()
[all …]
Dincoming_task_queue.cc64 PendingTask pending_task( in AddToIncomingQueue() local
74 pending_task.is_high_res = true; in AddToIncomingQueue()
77 return PostPendingTask(&pending_task); in AddToIncomingQueue()
138 bool IncomingTaskQueue::PostPendingTask(PendingTask* pending_task) { in PostPendingTask() argument
147 pending_task->task.Reset(); in PostPendingTask()
154 pending_task->sequence_num = next_sequence_num_++; in PostPendingTask()
157 *pending_task); in PostPendingTask()
160 incoming_queue_.push(*pending_task); in PostPendingTask()
161 pending_task->task.Reset(); in PostPendingTask()
Dmessage_loop.h357 virtual void WillProcessTask(const PendingTask& pending_task) = 0;
360 virtual void DidProcessTask(const PendingTask& pending_task) = 0;
396 void RunTask(const PendingTask& pending_task);
445 bool DeferOrRunPendingTask(const PendingTask& pending_task);
448 void AddToDelayedWorkQueue(const PendingTask& pending_task);
Dincoming_task_queue.h72 bool PostPendingTask(PendingTask* pending_task);
Dmessage_loop_unittest.cc676 void WillProcessTask(const PendingTask& pending_task) override { in WillProcessTask() argument
682 void DidProcessTask(const PendingTask& pending_task) override { in DidProcessTask() argument
/external/libchrome/base/
Dtracked_objects_unittest.cc191 base::TrackingInfo pending_task(location, kBogusBirthTime); in TEST_F() local
200 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch); in TEST_F()
455 base::TrackingInfo pending_task(location, kDelayedStartTime); in TEST_F() local
456 pending_task.time_posted = kTimePosted; // Overwrite implied Now(). in TEST_F()
466 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch); in TEST_F()
484 base::TrackingInfo pending_task(location, kDelayedStartTime); in TEST_F() local
485 pending_task.time_posted = kTimePosted; // Overwrite implied Now(). in TEST_F()
495 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch); in TEST_F()
585 base::TrackingInfo pending_task(location, base::TimeTicks()); in TEST_F() local
593 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch); in TEST_F()
[all …]
Dbase.gypi444 'pending_task.cc',
445 'pending_task.h',
DBUILD.gn543 "pending_task.cc",
544 "pending_task.h",
/external/libchrome/
DSConstruct99 pending_task.cc
DAndroid.mk105 base/pending_task.cc \