Searched refs:pending_task (Results 1 - 11 of 11) sorted by relevance

/external/libchrome/base/debug/
H A Dtask_annotator.cc8 #include "base/pending_task.h"
22 const PendingTask& pending_task) {
25 TRACE_ID_MANGLE(GetTaskTraceID(pending_task)),
30 const PendingTask& pending_task) {
34 stopwatch.StartTime() - pending_task.EffectiveTimePosted();
38 TRACE_ID_MANGLE(GetTaskTraceID(pending_task)),
48 const void* program_counter = pending_task.posted_from.program_counter();
51 pending_task.task.Run();
55 pending_task, stopwatch);
21 DidQueueTask(const char* queue_function, const PendingTask& pending_task) argument
29 RunTask(const char* queue_function, const PendingTask& pending_task) argument
H A Dtask_annotator_unittest.cc7 #include "base/pending_task.h"
22 PendingTask pending_task(FROM_HERE, Bind(&TestTask, &result));
25 annotator.DidQueueTask("TaskAnnotatorTest::Queue", pending_task);
27 annotator.RunTask("TaskAnnotatorTest::Queue", pending_task);
H A Dtask_annotator.h27 const PendingTask& pending_task);
31 void RunTask(const char* queue_function, const PendingTask& pending_task);
/external/libchrome/base/message_loop/
H A Dincoming_task_queue.cc71 PendingTask pending_task(
80 pending_task.is_high_res = true;
83 return PostPendingTask(&pending_task);
143 bool IncomingTaskQueue::PostPendingTask(PendingTask* pending_task) { argument
152 pending_task->task.Reset();
161 if (pending_task->is_high_res)
168 pending_task->sequence_num = next_sequence_num_++;
171 *pending_task);
174 incoming_queue_.push(std::move(*pending_task));
H A Dmessage_loop.cc467 PendingTask pending_task =
471 RunTask(pending_task);
475 void MessageLoop::RunTask(const PendingTask& pending_task) { argument
479 if (pending_task.is_high_res) {
490 TRACE_TASK_EXECUTION("MessageLoop::RunTask", pending_task);
493 WillProcessTask(pending_task));
494 task_annotator_.RunTask("MessageLoop::PostTask", pending_task);
496 DidProcessTask(pending_task));
501 bool MessageLoop::DeferOrRunPendingTask(PendingTask pending_task) { argument
502 if (pending_task
515 AddToDelayedWorkQueue(PendingTask pending_task) argument
523 PendingTask pending_task = std::move(work_queue_.front()); local
617 PendingTask pending_task = std::move(work_queue_.front()); local
659 PendingTask pending_task = local
[all...]
H A Dincoming_task_queue.h11 #include "base/pending_task.h"
67 // |pending_task|, but this function will reset the value of
68 // |pending_task->task|. This is needed to ensure that the posting call stack
69 // does not retain |pending_task->task| beyond this function call.
70 bool PostPendingTask(PendingTask* pending_task);
H A Dmessage_loop.h24 #include "base/pending_task.h"
362 virtual void WillProcessTask(const PendingTask& pending_task) = 0;
365 virtual void DidProcessTask(const PendingTask& pending_task) = 0;
391 void RunTask(const PendingTask& pending_task);
451 // Calls RunTask or queues the pending_task on the deferred task list if it
453 bool DeferOrRunPendingTask(PendingTask pending_task);
456 void AddToDelayedWorkQueue(PendingTask pending_task);
H A Dmessage_loop_unittest.cc18 #include "base/pending_task.h"
613 void WillProcessTask(const PendingTask& pending_task) override {
619 void DidProcessTask(const PendingTask& pending_task) override {
/external/libchrome/base/threading/
H A Dworker_pool_posix.cc86 PendingTask pending_task = pool_->WaitForTask(); local
87 if (pending_task.task.is_null())
89 TRACE_TASK_EXECUTION("WorkerThread::ThreadMain::Run", pending_task);
93 pending_task.task.Run();
97 pending_task.birth_tally, pending_task.time_posted, stopwatch);
144 PendingTask pending_task(from_here, task);
145 AddTask(&pending_task);
148 void PosixDynamicThreadPool::AddTask(PendingTask* pending_task) { argument
153 pending_tasks_.push(std::move(*pending_task));
188 PendingTask pending_task = std::move(pending_tasks_.front()); local
[all...]
H A Dworker_pool_posix.h35 #include "base/pending_task.h"
73 // Adds pending_task to the thread pool. This function will clear
74 // |pending_task->task|.
75 void AddTask(PendingTask* pending_task);
/external/libchrome/base/
H A Dtracked_objects_unittest.cc191 base::TrackingInfo pending_task(location, kBogusBirthTime);
200 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
455 base::TrackingInfo pending_task(location, kDelayedStartTime);
456 pending_task.time_posted = kTimePosted; // Overwrite implied Now().
466 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
484 base::TrackingInfo pending_task(location, kDelayedStartTime);
485 pending_task.time_posted = kTimePosted; // Overwrite implied Now().
495 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
585 base::TrackingInfo pending_task(location, base::TimeTicks());
593 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatc
[all...]

Completed in 923 milliseconds