Home
last modified time | relevance | path

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

/external/eigen/unsupported/Eigen/CXX11/src/ThreadPool/
DNonBlockingThreadPool.h25 queues_(num_threads), in env_()
55 queues_.push_back(new Queue()); in env_()
71 for (size_t i = 0; i < threads_.size(); i++) delete queues_[i]; in ~NonBlockingThreadPoolTempl() local
79 Queue* q = queues_[pt->thread_id]; in Schedule()
84 Queue* q = queues_[Rand(&pt->rand) % queues_.size()]; in Schedule()
126 MaxSizeVector<Queue*> queues_; variable
140 Queue* q = queues_[thread_id]; in WorkerLoop()
175 const size_t size = queues_.size(); in Steal()
180 Task t = queues_[victim]->PopBack(); in Steal()
204 *t = queues_[victim]->PopBack(); in WaitForWork()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Drandom_shuffle_queue_op.cc64 return queues_[0].size(); in size()
111 queues_[i].reserve(min_after_dequeue_); in Initialize()
117 DCHECK_GT(queues_[0].size(), size_t{0}); in DequeueLocked()
118 int64 index = generator_() % queues_[0].size(); in DequeueLocked()
121 (*tuple).push_back(*queues_[i][index].AccessTensor(ctx)); in DequeueLocked()
122 queues_[i][index] = queues_[i].back(); in DequeueLocked()
123 queues_[i].pop_back(); in DequeueLocked()
145 if (queues_[0].size() < static_cast<size_t>(capacity_)) { in TryEnqueue()
147 queues_[i].push_back(PersistentTensor(tuple[i])); in TryEnqueue()
204 while (queues_[0].size() < static_cast<size_t>(capacity_)) { in TryEnqueueMany()
[all …]
Dfifo_queue.cc42 DCHECK_GT(queues_[0].size(), size_t{0}); in DequeueLocked()
45 (*tuple).push_back(*queues_[i][0].AccessTensor(ctx)); in DequeueLocked()
46 queues_[i].pop_front(); in DequeueLocked()
68 if (queues_[0].size() < static_cast<size_t>(capacity_)) { in TryEnqueue()
70 queues_[i].push_back(PersistentTensor(tuple[i])); in TryEnqueue()
127 while (queues_[0].size() < static_cast<size_t>(capacity_)) { in TryEnqueueMany()
136 queues_[i].push_back(element); in TryEnqueueMany()
168 const int64 queue_size = queues_[0].size(); in TryDequeue()
260 int64 queue_size = queues_[0].size(); in TryDequeueMany()
282 queues_[j].push_front(element); in TryDequeueMany()
[all …]
Dtyped_queue.h44 std::vector<SubQueue> queues_ GUARDED_BY(mu_);
67 queues_.reserve(num_components()); in Initialize()
69 queues_.push_back(SubQueue()); in Initialize()
114 for (const auto& sq : queues_) { in MemoryUsed()
Dpriority_queue.cc63 DCHECK_GT(queues_[0].size(), 0); in DequeueLocked()
66 PersistentTensor persistent_tensor = gtl::ConsumeTop(&queues_[i]).second; in DequeueLocked()
89 if (queues_[0].size() < static_cast<size_t>(capacity_)) { in TryEnqueue()
99 queues_[i].emplace(priority, PersistentTensor(tuple[i])); in TryEnqueue()
155 while (queues_[0].size() < static_cast<size_t>(capacity_)) { in TryEnqueueMany()
178 queues_[i].emplace(priority, element); in TryEnqueueMany()
211 const int32 s = queues_[0].size(); in TryDequeue()
303 int32 s = queues_[0].size(); in TryDequeueMany()
Dpadding_fifo_queue.cc102 int32 queue_size = queues_[0].size(); in TryDequeueMany()
120 queues_[j].push_front(element); in TryDequeueMany()
124 if (allow_small_batch && !queues_[0].empty()) { in TryDequeueMany()
126 queue_size = queues_[0].size(); in TryDequeueMany()
Dfifo_queue.h54 return queues_[0].size(); in size()
Dpriority_queue.h73 return queues_[0].size(); in size()
/external/tensorflow/tensorflow/core/kernels/batching_util/
Dshared_batch_scheduler.h188 QueueList queues_ GUARDED_BY(mu_);
379 if (queues_.empty()) { in ~SharedBatchScheduler()
425 queues_.push_back(std::move(internal_queue)); in AddQueue()
426 if (next_queue_to_schedule_ == queues_.end()) { in AddQueue()
427 next_queue_to_schedule_ = queues_.begin(); in AddQueue()
436 : options_(options), next_queue_to_schedule_(queues_.end()) { in SharedBatchScheduler()
458 const int num_queues = queues_.size(); in ThreadLogic()
462 DCHECK(next_queue_to_schedule_ != queues_.end()); in ThreadLogic()
481 next_queue_to_schedule_ = queues_.erase(next_queue_to_schedule_); in ThreadLogic()
485 if (next_queue_to_schedule_ == queues_.end() && !queues_.empty()) { in ThreadLogic()
[all …]
/external/perfetto/src/trace_processor/
Dtrace_sorter.cc94 for (size_t i = 0; i < queues_.size(); i++) { in SortAndExtractEventsBeyondWindow()
95 auto& queue = queues_[i]; in SortAndExtractEventsBeyondWindow()
115 Queue& queue = queues_[min_queue_idx]; in SortAndExtractEventsBeyondWindow()
166 for (auto& q : queues_) in SortAndExtractEventsBeyondWindow()
184 for (auto& q : queues_) { in SortAndExtractEventsBeyondWindow()
Dtrace_sorter.h273 if (PERFETTO_UNLIKELY(index >= queues_.size())) in GetQueue()
274 queues_.resize(index + 1); in GetQueue()
275 return &queues_[index]; in GetQueue()
294 std::vector<Queue> queues_; variable
/external/libchrome/base/task/sequence_manager/
Dgraceful_queue_shutdown_helper.cc23 queues_.push_back(std::move(task_queue)); in GracefullyShutdownTaskQueue()
29 queues_.clear(); in OnSequenceManagerDeleted()
36 result.swap(queues_); in TakeQueues()
Dsequence_manager_perftest.cc70 queues_.clear(); in TearDown()
87 queues_.push_back(manager_->CreateTaskQueue<TestTaskQueue>( in Initialize()
125 queues_[queue]->PostDelayedTask(FROM_HERE, delayed_task_closure_, in TestDelayedTask()
156 queues_[queue]->PostTask(FROM_HERE, immediate_task_closure_); in TestImmediateTask()
202 std::vector<scoped_refptr<SingleThreadTaskRunner>> queues_; member in base::sequence_manager::SequenceManagerPerfTest
Dgraceful_queue_shutdown_helper.h41 std::vector<std::unique_ptr<internal::TaskQueueImpl>> queues_; variable
/external/vulkan-validation-layers/tests/
Dvktestbinding.cpp329 queues_[GRAPHICS].push_back(queue_storage.back().get()); in init_queues()
333 queues_[COMPUTE].push_back(queue_storage.back().get()); in init_queues()
337 queues_[DMA].push_back(queue_storage.back().get()); in init_queues()
344 EXPECT(!queues_[GRAPHICS].empty() || !queues_[COMPUTE].empty()); in init_queues()
Dvktestbinding.h214 const std::vector<Queue *> &graphics_queues() const { return queues_[GRAPHICS]; } in graphics_queues()
215 const std::vector<Queue *> &compute_queues() { return queues_[COMPUTE]; } in compute_queues()
216 const std::vector<Queue *> &dma_queues() { return queues_[DMA]; } in dma_queues()
281 std::vector<Queue *> queues_[QUEUE_COUNT]; variable