Home
last modified time | relevance | path

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

/external/libchrome/base/task/sequence_manager/
Dwork_queue.cc20 for (const TaskQueueImpl::Task& task : tasks_) { in AsValueInto()
31 if (tasks_.empty()) in GetFrontTask()
33 return &tasks_.front(); in GetFrontTask()
37 if (tasks_.empty()) in GetBackTask()
39 return &tasks_.back(); in GetBackTask()
49 return tasks_.empty() || tasks_.front().enqueue_order() >= fence_; in BlockedByFence()
53 if (tasks_.empty() || BlockedByFence()) in GetFrontTaskEnqueueOrder()
56 DCHECK_LE(tasks_.front().enqueue_order(), tasks_.back().enqueue_order()) in GetFrontTaskEnqueueOrder()
59 *enqueue_order = tasks_.front().enqueue_order(); in GetFrontTaskEnqueueOrder()
64 bool was_empty = tasks_.empty(); in Push()
[all …]
Dwork_queue.h49 bool Empty() const { return tasks_.empty(); } in Empty()
78 size_t Size() const { return tasks_.size(); } in Size()
136 TaskQueueImpl::TaskDeque tasks_; variable
/external/libchrome/base/test/
Dtest_mock_time_task_runner.cc249 while (!tasks_.empty()) { in ClearPendingTasks()
251 tasks_.swap(cleanup_tasks); in ClearPendingTasks()
303 while (!tasks_.empty()) { in TakePendingTasks()
306 if (!tasks_.top().task.IsCancelled()) { in TakePendingTasks()
308 std::move(const_cast<TestOrderedPendingTask&>(tasks_.top()))); in TakePendingTasks()
310 tasks_.pop(); in TakePendingTasks()
318 while (!tasks_.empty() && tasks_.top().task.IsCancelled()) in HasPendingTask()
319 tasks_.pop(); in HasPendingTask()
320 return !tasks_.empty(); in HasPendingTask()
327 while (!tasks_.empty()) { in GetPendingTaskCount()
[all …]
Dtest_mock_time_task_runner.h275 TaskPriorityQueue tasks_; variable
/external/webrtc/webrtc/base/
Dtaskrunner.cc40 tasks_.push_back(task); in StartTask()
73 for (size_t i = 0; i < tasks_.size(); ++i) { in InternalRunTasks()
74 while (!tasks_[i]->Blocked()) { in InternalRunTasks()
75 tasks_[i]->Step(); in InternalRunTasks()
82 for (size_t i = 0; i < tasks_.size(); ++i) { in InternalRunTasks()
83 if (tasks_[i]->IsDone()) { in InternalRunTasks()
84 Task* task = tasks_[i]; in InternalRunTasks()
98 tasks_[i] = NULL; in InternalRunTasks()
103 it = std::remove(tasks_.begin(), in InternalRunTasks()
104 tasks_.end(), in InternalRunTasks()
[all …]
Dtaskrunner.h87 std::vector<Task *> tasks_; variable
/external/libbrillo/brillo/message_loops/
Dfake_message_loop.cc28 tasks_.emplace(current_id, ScheduledTask{from_here, false, task}); in PostDelayedTask()
45 tasks_.emplace(current_id, ScheduledTask{from_here, persistent, task}); in WatchFileDescriptor()
53 bool ret = tasks_.erase(task_id) > 0; in CancelTask()
68 const auto& scheduled_task_ref = tasks_.find(fd_watched->second); in RunOnce()
69 if (scheduled_task_ref == tasks_.end()) { in RunOnce()
84 tasks_.erase(scheduled_task_ref); in RunOnce()
99 const auto scheduled_task_ref = tasks_.find(task_ref.second); in RunOnce()
100 if (scheduled_task_ref == tasks_.end()) in RunOnce()
115 tasks_.erase(scheduled_task_ref); in RunOnce()
133 for (const auto& task : tasks_) { in PendingTasks()
[all …]
Dfake_message_loop.h72 std::map<MessageLoop::TaskId, ScheduledTask> tasks_; variable
/external/tensorflow/tensorflow/core/kernels/batching_util/
Dbatch_scheduler.h120 std::vector<std::unique_ptr<TaskType>> tasks_ GUARDED_BY(mu_);
201 tasks_.push_back(std::move(task)); in AddTask()
209 if (tasks_.empty()) { in RemoveTask()
212 std::unique_ptr<TaskType> task = std::move(tasks_.back()); in RemoveTask()
214 tasks_.pop_back(); in RemoveTask()
223 return tasks_.size(); in num_tasks()
231 return tasks_.empty(); in empty()
240 DCHECK_LT(i, tasks_.size()); in task()
241 return *tasks_[i].get(); in task()
250 DCHECK_LT(i, tasks_.size()); in mutable_task()
[all …]
/external/webrtc/webrtc/libjingle/xmpp/
Dfakexmppclient.h74 tasks_.push_back(task); in AddXmppTask()
78 std::remove(tasks_.begin(), tasks_.end(), task); in RemoveXmppTask()
88 for (std::vector<XmppTask*>::iterator task = tasks_.begin(); in HandleStanza()
89 task != tasks_.end(); ++task) { in HandleStanza()
100 std::vector<XmppTask*> tasks_; variable
/external/v8/src/heap/
Dbarrier.h34 OneshotBarrier() : tasks_(0), waiting_(0), done_(false) {} in OneshotBarrier()
38 tasks_++; in Start()
50 DCHECK_LE(waiting_, tasks_); in Wait()
52 if (waiting_ == tasks_) { in Wait()
69 int tasks_; variable
Ditem-parallel-job.cc62 DCHECK_GT(tasks_.size(), 0); in Run()
64 const size_t num_tasks = tasks_.size(); in Run()
79 const size_t num_tasks_processing_items = Min(num_items, tasks_.size()); in Run()
96 auto task = std::move(tasks_[i]); in Run()
Ditem-parallel-job.h130 void AddTask(Task* task) { tasks_.push_back(std::unique_ptr<Task>(task)); } in AddTask()
136 int NumberOfTasks() const { return static_cast<int>(tasks_.size()); } in NumberOfTasks()
144 std::vector<std::unique_ptr<Task>> tasks_; variable
/external/libchrome/mojo/public/cpp/bindings/tests/
Dbind_task_runner_unittest.cc47 tasks_.push(std::move(task)); in PostDelayedTask()
64 while (!tasks_.empty()) { in Run()
65 auto task = std::move(tasks_.front()); in Run()
66 tasks_.pop(); in Run()
92 if (!tasks_.empty()) { in RunOneTask()
93 auto task = std::move(tasks_.front()); in RunOneTask()
94 tasks_.pop(); in RunOneTask()
116 base::queue<base::OnceClosure> tasks_; member in mojo::test::__anona2eee2bc0111::TestTaskRunner
/external/libchrome/mojo/public/cpp/bindings/lib/
Dmultiplex_router.cc356 tasks_.clear(); in ~MultiplexRouter()
470 tasks_.push_back(Task::CreateNotifyErrorTask(endpoint)); in AttachEndpointClient()
589 bool processed = tasks_.empty() && ProcessIncomingMessage( in Accept()
596 tasks_.push_back(Task::CreateMessageTask(std::move(message_wrapper))); in Accept()
597 Task* task = tasks_.back().get(); in Accept()
606 } else if (!tasks_.empty()) { in Accept()
635 tasks_.push_back(Task::CreateNotifyErrorTask(endpoint)); in OnPeerAssociatedEndpointClosed()
662 tasks_.push_back(Task::CreateNotifyErrorTask(endpoint.get())); in OnPipeConnectionError()
681 while (!tasks_.empty() && !paused_) { in ProcessTasks()
682 std::unique_ptr<Task> task(std::move(tasks_.front())); in ProcessTasks()
[all …]
Dmultiplex_router.h266 base::circular_deque<std::unique_ptr<Task>> tasks_; variable