Home
last modified time | relevance | path

Searched refs:pool_ (Results 1 – 25 of 68) sorted by relevance

123

/external/perfetto/src/trace_processor/containers/
Dstring_pool_unittest.cc35 StringPool pool_; member in perfetto::trace_processor::StringPoolTest
41 ASSERT_EQ(pool_.Get(StringPool::Id::Null()).c_str(), nullptr); in TEST_F()
43 auto it = pool_.CreateIterator(); in TEST_F()
51 auto id = pool_.InternString(kString); in TEST_F()
52 ASSERT_STREQ(pool_.Get(id).c_str(), kString); in TEST_F()
53 ASSERT_EQ(pool_.Get(id), kString); in TEST_F()
54 ASSERT_EQ(id, pool_.InternString(kString)); in TEST_F()
58 auto id = pool_.InternString(NullTermStringView()); in TEST_F()
60 ASSERT_EQ(pool_.Get(id).c_str(), nullptr); in TEST_F()
64 auto it = pool_.CreateIterator(); in TEST_F()
[all …]
Dstring_pool.cc130 StringPool::Iterator::Iterator(const StringPool* pool) : pool_(pool) {} in Iterator()
133 if (block_index_ < pool_->blocks_.size()) { in operator ++()
135 const auto& block = pool_->blocks_[block_index_]; in operator ++()
155 PERFETTO_DCHECK(large_strings_index_ < pool_->large_strings_.size()); in operator ++()
161 return block_index_ < pool_->blocks_.size() || in operator bool()
162 large_strings_index_ < pool_->large_strings_.size(); in operator bool()
166 return pool_->Get(StringId()); in StringView()
170 if (block_index_ < pool_->blocks_.size()) { in StringId()
171 PERFETTO_DCHECK(block_offset_ < pool_->blocks_[block_index_].pos()); in StringId()
178 PERFETTO_DCHECK(large_strings_index_ < pool_->large_strings_.size()); in StringId()
/external/grpc-grpc/src/cpp/server/
Ddynamic_thread_pool.cc30 : pool_(pool), in DynamicThread()
41 pool_->ThreadFunc(); in ThreadFunc()
43 std::unique_lock<std::mutex> lock(pool_->mu_); in ThreadFunc()
44 pool_->nthreads_--; in ThreadFunc()
46 pool_->dead_threads_.push_back(this); in ThreadFunc()
48 if ((pool_->shutdown_) && (pool_->nthreads_ == 0)) { in ThreadFunc()
49 pool_->shutdown_cv_.notify_one(); in ThreadFunc()
/external/tensorflow/tensorflow/lite/kernels/
Deigen_support.cc63 pool_.reset(new Eigen::ThreadPool(num_threads)); in EigenThreadPoolWrapper()
69 if (pool_) { in Schedule()
70 pool_->Schedule(std::move(fn)); in Schedule()
75 int NumThreads() const override { return pool_ ? pool_->NumThreads() : 1; } in NumThreads()
77 return pool_ ? pool_->CurrentThreadId() : 0; in CurrentThreadId()
82 std::unique_ptr<Eigen::ThreadPool> pool_; member in tflite::eigen_support::__anon20e3d0b80111::EigenThreadPoolWrapper
/external/protobuf/src/google/protobuf/
Ddynamic_message_unittest.cc62 DescriptorPool pool_; member in google::protobuf::DynamicMessageTest
75 DynamicMessageTest() : factory_(&pool_) {} in DynamicMessageTest()
95 ASSERT_TRUE(pool_.BuildFile(unittest_import_public_file) != NULL); in SetUp()
96 ASSERT_TRUE(pool_.BuildFile(unittest_import_file) != NULL); in SetUp()
97 ASSERT_TRUE(pool_.BuildFile(unittest_file) != NULL); in SetUp()
98 ASSERT_TRUE(pool_.BuildFile(unittest_no_field_presence_file) != NULL); in SetUp()
100 descriptor_ = pool_.FindMessageTypeByName("protobuf_unittest.TestAllTypes"); in SetUp()
105 pool_.FindMessageTypeByName("protobuf_unittest.TestAllExtensions"); in SetUp()
110 pool_.FindMessageTypeByName("protobuf_unittest.TestPackedTypes"); in SetUp()
115 pool_.FindMessageTypeByName("protobuf_unittest.TestOneof2"); in SetUp()
[all …]
Ddescriptor_unittest.cc345 foo_file_ = pool_.BuildFile(foo_file); in SetUp()
348 bar_file_ = pool_.BuildFile(bar_file); in SetUp()
351 baz_file_ = pool_.BuildFile(baz_file); in SetUp()
377 DescriptorPool pool_; member in google::protobuf::descriptor_unittest::FileDescriptorTest
474 EXPECT_EQ(foo_extension_, pool_.FindExtensionByNumber(foo_message_, 1)); in TEST_F()
475 EXPECT_EQ(bar_extension_, pool_.FindExtensionByNumber(bar_message_, 1)); in TEST_F()
477 EXPECT_TRUE(pool_.FindExtensionByNumber(foo_message_, 2) == nullptr); in TEST_F()
486 EXPECT_EQ(foo_file_, pool_.BuildFile(file)); in TEST_F()
490 EXPECT_TRUE(pool_.BuildFile(file) == nullptr); in TEST_F()
500 const FileDescriptor* proto2_descriptor = pool_.BuildFile(proto_syntax2); in TEST_F()
[all …]
/external/tensorflow/tensorflow/core/common_runtime/
Dpool_allocator.cc110 auto iter = pool_.find(num_bytes); in AllocateRaw()
111 if (iter == pool_.end()) { in AllocateRaw()
120 pool_.erase(iter); in AllocateRaw()
144 while (pool_.size() >= pool_size_limit_) { in DeallocateRaw()
151 pool_.insert(std::make_pair(cp->num_bytes, pr)); in DeallocateRaw()
158 for (auto iter : pool_) { in Clear()
163 pool_.clear(); in Clear()
208 auto iter = pool_.find(prec->num_bytes); in EvictOne()
211 DCHECK(iter != pool_.end()); in EvictOne()
213 pool_.erase(iter); in EvictOne()
Dkernel_benchmark_testlib.cc69 pool_ = in Benchmark()
73 pool_->Schedule(closure); in Benchmark()
116 delete pool_; in ~Benchmark()
149 pool_->Schedule(closure); in RunWithRendezvousArgs()
/external/tensorflow/tensorflow/compiler/xla/python/
Devent_pool.cc24 if (pool_ && event_) { in ~Handle()
25 absl::MutexLock lock(&pool_->mu_); in ~Handle()
26 pool_->free_events_.push(std::move(event_)); in ~Handle()
37 event.pool_ = this; in ThenAllocateAndRecordEvent()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorDeviceThreadPool.h109 …ThreadPoolDevice(ThreadPoolInterface* pool, int num_cores) : pool_(pool), num_threads_(num_cores) … in ThreadPoolDevice()
154pool_->Schedule(std::bind(&FunctionWrapperWithNotification<Function, Args...>::run, n, f, args...)… in enqueue()
162 pool_->Schedule(std::bind( in enqueue_with_barrier()
168 pool_->Schedule(std::bind(f, args...)); in enqueueNoNotification()
174 return pool_->CurrentThreadId(); in currentThreadId()
258 pool_->Schedule([=, &handleRange]() { handleRange(mid, last); }); in parallelFor()
259 pool_->Schedule([=, &handleRange]() { handleRange(first, mid); }); in parallelFor()
272 ThreadPoolInterface* pool_;
/external/gemmlowp/meta/
Dmulti_thread_common.h42 : max_num_threads_(max_num_threads), pool_(pool) {} in SimpleContext()
44 WorkersPool* workers_pool() { return pool_; } in workers_pool()
50 WorkersPool* pool_; variable
/external/deqp-deps/amber/src/vulkan/
Dcommand_pool.cc25 if (pool_ == VK_NULL_HANDLE) in ~CommandPool()
28 device_->GetPtrs()->vkDestroyCommandPool(device_->GetVkDevice(), pool_, in ~CommandPool()
39 device_->GetVkDevice(), &pool_info, nullptr, &pool_) != VK_SUCCESS) { in Initialize()
Dcommand_pool.h34 VkCommandPool GetVkCommandPool() const { return pool_; } in GetVkCommandPool()
38 VkCommandPool pool_ = VK_NULL_HANDLE; variable
Dcommand_buffer.cc26 : device_(device), pool_(pool) {} in CommandBuffer()
34 device_->GetVkDevice(), pool_->GetVkCommandPool(), 1, &command_); in ~CommandBuffer()
41 command_info.commandPool = pool_->GetVkCommandPool(); in Initialize()
/external/webrtc/webrtc/base/
Dsocketpool.cc27 StreamCache::StreamCache(StreamPool* pool) : pool_(pool) { in StreamCache()
57 if (StreamInterface* stream = pool_->RequestConnectedStream(remote, err)) { in RequestConnectedStream()
74 pool_->ReturnConnectedStream(it->second); in ReturnConnectedStream()
101 pool_->ReturnConnectedStream(it->second); in OnStreamEvent()
239 : pool_(pool), level_(level), label_(label), binary_mode_(binary_mode) { in LoggingPoolAdapter()
251 if (StreamInterface* stream = pool_->RequestConnectedStream(remote, err)) { in RequestConnectedStream()
274 pool_->ReturnConnectedStream(logging->Detach()); in ReturnConnectedStream()
Dscoped_autorelease_pool.mm18 pool_ = [[NSAutoreleasePool alloc] init];
22 [pool_ drain];
/external/libgav1/libgav1/src/utils/
Dthreadpool.cc145 ThreadPool* pool_; member in libgav1::ThreadPool::WorkerThread
153 ThreadPool::WorkerThread::WorkerThread(ThreadPool* pool) : pool_(pool) {} in WorkerThread()
201 if (pool_->name_prefix_[0] != '\0') { in SetupName()
209 int rv = snprintf(name, sizeof(name), "%s/%" PRId64, pool_->name_prefix_, in SetupName()
220 int rv = snprintf(name, sizeof(name), "%s/%" PRId64, pool_->name_prefix_, in SetupName()
234 pool_->WorkerFunction(); in Run()
/external/perfetto/src/trace_processor/importers/proto/
Dargs_table_utils.cc37 return pool_.AddFromFileDescriptorSet(proto_descriptor_array, in AddProtoFileDescriptor()
47 auto idx = pool_.FindDescriptorIdx(type); in InternProtoFieldsIntoArgsTable()
52 auto descriptor = pool_.descriptors()[*idx]; in InternProtoFieldsIntoArgsTable()
98 auto opt_proto_descriptor_idx = pool_.FindDescriptorIdx(type); in InternProtoIntoArgsTableInternal()
102 auto proto_descriptor = pool_.descriptors()[*opt_proto_descriptor_idx]; in InternProtoIntoArgsTableInternal()
221 pool_.FindDescriptorIdx(descriptor.resolved_type_name()); in ConvertProtoTypeToVariadic()
227 pool_.descriptors()[*opt_enum_descriptor_idx].FindEnumString( in ConvertProtoTypeToVariadic()
/external/libgav1/libgav1/src/
Dbuffer_pool.cc51 std::lock_guard<std::mutex> lock(pool_->mutex_); in Realloc()
56 pool_->get_frame_buffer_, pool_->callback_private_data_, in Realloc()
110 void RefCountedBuffer::SetBufferPool(BufferPool* pool) { pool_ = pool; } in SetBufferPool()
113 ptr->pool_->ReturnUnusedBuffer(ptr); in ReturnToBufferPool()
/external/tensorflow/tensorflow/core/kernels/data/
Dunbounded_thread_pool.cc53 explicit LogicalThreadFactory(UnboundedThreadPool* pool) : pool_(pool) {} in LogicalThreadFactory()
58 pool_->ScheduleOnWorkQueue(std::move(fn), done); in StartThread()
63 UnboundedThreadPool* const pool_; // Not owned. member in tensorflow::data::UnboundedThreadPool::LogicalThreadFactory
/external/perfetto/src/trace_processor/tables/
Dmacros_unittest.cc61 StringPool pool_; member in perfetto::trace_processor::__anon1db7f52a0111::TableMacrosUnittest
63 TestEventTable event_{&pool_, nullptr};
64 TestCounterTable counter_{&pool_, &event_};
65 TestSliceTable slice_{&pool_, &event_};
66 TestCpuSliceTable cpu_slice_{&pool_, &slice_};
111 auto reason = pool_.InternString("R"); in TEST_F()
356 row.end_state = pool_.InternString("R"); in TEST_F()
359 row.end_state = pool_.InternString("D"); in TEST_F()
412 row.end_state = pool_.InternString("D"); in TEST_F()
/external/libgav1/libgav1/examples/
Dgav1_decode_cv_pixel_buffer_pool.cc85 CVPixelBufferPoolRelease(pool_); in ~Gav1DecodeCVPixelBufferPool()
183 CVPixelBufferPoolRelease(pool_); in OnCVPixelBufferSizeChanged()
184 pool_ = cv_pool; in OnCVPixelBufferSizeChanged()
221 /*allocator=*/nullptr, pool_, aux_attributes.get(), &pixel_buffer); in GetCVPixelBuffer()
/external/v8/src/heap/cppgc/
Dpage-memory.cc156 pool_[bucket].push_back(std::make_pair(pmr, writeable_base)); in Add()
162 if (pool_[bucket].empty()) return {nullptr, nullptr}; in Take()
163 std::pair<NormalPageMemoryRegion*, Address> pair = pool_[bucket].back(); in Take()
164 pool_[bucket].pop_back(); in Take()
/external/protobuf/src/google/protobuf/compiler/
Dimporter.cc226 pool_(&database_, database_.GetValidationErrorCollector()) { in Importer()
227 pool_.EnforceWeakDependencies(true); in Importer()
234 return pool_.FindFileByName(filename); in Import()
238 pool_.AddUnusedImportTrackFile(file_name); in AddUnusedImportTrackFile()
242 pool_.ClearUnusedImportTrackFiles(); in ClearUnusedImportTrackFiles()
/external/v8/src/codegen/
Dconstant-pool.cc441 : pool_(&assm->constpool_) { in BlockScope()
442 pool_->assm_->EmitConstPoolWithJumpIfNeeded(margin); in BlockScope()
443 pool_->StartBlock(); in BlockScope()
447 : pool_(&assm->constpool_) { in BlockScope()
449 pool_->StartBlock(); in BlockScope()
452 ConstantPool::BlockScope::~BlockScope() { pool_->EndBlock(); } in ~BlockScope()

123