Home
last modified time | relevance | path

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

12

/external/libchrome/base/threading/
Dworker_pool_posix_unittest.cc24 : pool_(pool) {} in PosixDynamicThreadPoolPeer()
26 Lock* lock() { return &pool_->lock_; } in lock()
28 return &pool_->pending_tasks_available_cv_; in pending_tasks_available_cv()
31 return pool_->pending_tasks_; in pending_tasks()
33 int num_idle_threads() const { return pool_->num_idle_threads_; } in num_idle_threads()
35 return pool_->num_idle_threads_cv_.get(); in num_idle_threads_cv()
38 pool_->num_idle_threads_cv_.reset(cv); in set_num_idle_threads_cv()
42 PosixDynamicThreadPool* pool_; member in base::PosixDynamicThreadPool::PosixDynamicThreadPoolPeer
94 : pool_(new base::PosixDynamicThreadPool("dynamic_pool", 60 * 60)), in PosixDynamicThreadPoolTest()
95 peer_(pool_.get()), in PosixDynamicThreadPoolTest()
[all …]
Dworker_pool_posix.cc43 scoped_refptr<base::PosixDynamicThreadPool> pool_; member in base::__anone993f91d0111::WorkerPoolImpl
47 : pool_(new base::PosixDynamicThreadPool("WorkerPool", in WorkerPoolImpl()
51 pool_->Terminate(); in ~WorkerPoolImpl()
57 pool_->PostTask(from_here, task); in PostTask()
67 : name_prefix_(name_prefix), pool_(pool) {} in WorkerThread()
73 scoped_refptr<base::PosixDynamicThreadPool> pool_; member in base::__anone993f91d0111::WorkerThread
86 PendingTask pending_task = pool_->WaitForTask(); in ThreadMain()
Dsequenced_worker_pool.cc113 const scoped_refptr<SequencedWorkerPool> pool_; member in base::__anon3cfb63c70111::SequencedWorkerPoolTaskRunner
123 : pool_(pool), in SequencedWorkerPoolTaskRunner()
135 return pool_->PostWorkerTaskWithShutdownBehavior( in PostDelayedTask()
138 return pool_->PostDelayedWorkerTask(from_here, task, delay); in PostDelayedTask()
142 return pool_->RunsTasksOnCurrentThread(); in RunsTasksOnCurrentThread()
171 const scoped_refptr<SequencedWorkerPool> pool_; member in base::__anon3cfb63c70111::SequencedWorkerPoolSequencedTaskRunner
184 : pool_(pool), in SequencedWorkerPoolSequencedTaskRunner()
198 return pool_->PostSequencedWorkerTaskWithShutdownBehavior( in PostDelayedTask()
201 return pool_->PostDelayedSequencedWorkerTask(token_, from_here, task, delay); in PostDelayedTask()
205 return pool_->IsRunningSequenceOnCurrentThread(token_); in RunsTasksOnCurrentThread()
/external/protobuf/src/google/protobuf/
Ddynamic_message_unittest.cc58 DescriptorPool pool_; member in google::protobuf::DynamicMessageTest
69 DynamicMessageTest(): factory_(&pool_) {} in DynamicMessageTest()
86 ASSERT_TRUE(pool_.BuildFile(unittest_import_public_file) != NULL); in SetUp()
87 ASSERT_TRUE(pool_.BuildFile(unittest_import_file) != NULL); in SetUp()
88 ASSERT_TRUE(pool_.BuildFile(unittest_file) != NULL); in SetUp()
90 descriptor_ = pool_.FindMessageTypeByName("protobuf_unittest.TestAllTypes"); in SetUp()
95 pool_.FindMessageTypeByName("protobuf_unittest.TestAllExtensions"); in SetUp()
100 pool_.FindMessageTypeByName("protobuf_unittest.TestPackedTypes"); in SetUp()
105 pool_.FindMessageTypeByName("protobuf_unittest.TestOneof2"); in SetUp()
179 pool_.FindMessageTypeByName("protobuf_unittest.TestOneof2.NestedMessage"); in TEST_F()
[all …]
Ddescriptor_unittest.cc216 foo_file_ = pool_.BuildFile(foo_file); in SetUp()
219 bar_file_ = pool_.BuildFile(bar_file); in SetUp()
222 baz_file_ = pool_.BuildFile(baz_file); in SetUp()
248 DescriptorPool pool_; member in google::protobuf::descriptor_unittest::FileDescriptorTest
345 EXPECT_EQ(foo_extension_, pool_.FindExtensionByNumber(foo_message_, 1)); in TEST_F()
346 EXPECT_EQ(bar_extension_, pool_.FindExtensionByNumber(bar_message_, 1)); in TEST_F()
348 EXPECT_TRUE(pool_.FindExtensionByNumber(foo_message_, 2) == NULL); in TEST_F()
356 EXPECT_EQ(foo_file_, pool_.BuildFile(file)); in TEST_F()
360 EXPECT_TRUE(pool_.BuildFile(file) == NULL); in TEST_F()
438 foo_file_ = pool_.BuildFile(foo_file); in SetUp()
[all …]
Ddescriptor_database.cc394 : pool_(pool) {} in DescriptorPoolDatabase()
400 const FileDescriptor* file = pool_.FindFileByName(filename); in FindFileByName()
410 const FileDescriptor* file = pool_.FindFileContainingSymbol(symbol_name); in FindFileContainingSymbol()
421 const Descriptor* extendee = pool_.FindMessageTypeByName(containing_type); in FindFileContainingExtension()
425 pool_.FindExtensionByNumber(extendee, field_number); in FindFileContainingExtension()
436 const Descriptor* extendee = pool_.FindMessageTypeByName(extendee_type); in FindAllExtensionNumbers()
440 pool_.FindAllExtensions(extendee, &extensions); in FindAllExtensionNumbers()
Ddynamic_message.h117 const DescriptorPool* pool_;
Ddescriptor.cc2293 const DescriptorPool* pool_; member in google::protobuf::DescriptorBuilder
2721 : pool_(pool), in DescriptorBuilder()
2816 MutexLockMaybe lock((pool == pool_) ? NULL : pool->mutex_); in FindSymbolNotEnforcingDepsHelper()
2839 return FindSymbolNotEnforcingDepsHelper(pool_, name); in FindSymbolNotEnforcingDeps()
2847 if (!pool_->enforce_dependencies_) { in FindSymbol()
2960 if (result.IsNull() && pool_->allow_unknown_) { in LookupSymbol()
3003 placeholder_file->pool_ = pool_; in NewPlaceholder()
3078 placeholder->pool_ = pool_; in NewPlaceholderFile()
3274 if (pool_->fallback_database_ == NULL) { in AddImportError()
3330 if (pool_->fallback_database_ != NULL) { in BuildFile()
[all …]
Ddynamic_message.cc523 : pool_(NULL), delegate_to_generated_factory_(false), in DynamicMessageFactory()
528 : pool_(pool), delegate_to_generated_factory_(false), in DynamicMessageFactory()
564 type_info->pool = (pool_ == NULL) ? type->file()->pool() : pool_; in GetPrototypeNoLock()
Ddescriptor_database_unittest.cc141 DescriptorPoolDatabaseTestCase() : database_(pool_) {} in DescriptorPoolDatabaseTestCase()
148 return pool_.BuildFile(file); in AddToDatabase()
152 DescriptorPool pool_; member in google::protobuf::__anon9ff1ad7a0111::DescriptorPoolDatabaseTestCase
/external/libchrome/base/test/
Dsequenced_worker_pool_owner.cc17 pool_(new SequencedWorkerPool(max_threads, thread_name_prefix, this)), in SequencedWorkerPoolOwner()
21 pool_->Shutdown(); in ~SequencedWorkerPoolOwner()
22 pool_ = NULL; in ~SequencedWorkerPoolOwner()
29 return pool_; in pool()
Dsequenced_worker_pool_owner.h60 scoped_refptr<SequencedWorkerPool> pool_; variable
/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];
Dsocketpool.h63 StreamPool* pool_; variable
131 StreamPool* pool_;
Dhttpclient.h67 void set_pool(StreamPool* pool) { pool_ = pool; } in set_pool()
166 StreamPool* pool_; variable
Dscoped_autorelease_pool.h51 NSAutoreleasePool* pool_; variable
Dhttpclient.cc269 : agent_(agent), pool_(pool), in HttpClient()
403 StreamInterface* stream = pool_->RequestConnectedStream(server_, &stream_err); in connect()
437 pool_->ReturnConnectedStream(stream); in release()
/external/protobuf/src/google/protobuf/compiler/
Dimporter.cc190 pool_(&database_, database_.GetValidationErrorCollector()) { in Importer()
191 pool_.EnforceWeakDependencies(true); in Importer()
198 return pool_.FindFileByName(filename); in Import()
202 pool_.AddUnusedImportTrackFile(file_name); in AddUnusedImportTrackFile()
206 pool_.ClearUnusedImportTrackFiles(); in ClearUnusedImportTrackFiles()
Dimporter.h166 return &pool_; in pool()
174 DescriptorPool pool_; variable
Dparser_unittest.cc170 EXPECT_TRUE(pool_.BuildFileCollectingErrors( in ExpectHasValidationErrors()
176 DescriptorPool pool_; member in google::protobuf::compiler::__anonaab372be0111::ParserTest
1187 EXPECT_TRUE(pool_.BuildFile(other_file) != NULL); in TEST_F()
1341 EXPECT_TRUE(pool_.BuildFile(other_file) != NULL); in TEST_F()
1362 ASSERT_TRUE(pool_.BuildFile(descriptor_proto) != NULL); in TEST_F()
1391 EXPECT_TRUE(pool_.BuildFile(other_file) != NULL); in TEST_F()
1477 ASSERT_TRUE(pool_.BuildFile(public_import_proto) != NULL); in TEST_F()
1482 ASSERT_TRUE(pool_.BuildFile(import_proto) != NULL); in TEST_F()
1483 const FileDescriptor* actual = pool_.BuildFile(parsed); in TEST_F()
1526 ASSERT_TRUE(pool_.BuildFile(import_proto) != NULL); in TEST_F()
[all …]
/external/opencv3/modules/flann/include/opencv2/flann/
Dkdtree_index.h187 …return int(pool_.usedMemory+pool_.wastedMemory+dataset_.rows*sizeof(int)); // pool memory and vin… in usedMemory()
256 tree = pool_.allocate<Node>(); in load_tree()
278 NodePtr node = pool_.allocate<Node>(); // allocate memory in divideTree()
612 PooledAllocator pool_; variable
Dkmeans_index.h426 return pool_.usedMemory+pool_.wastedMemory+memoryCounter_; in usedMemory()
443 root_ = pool_.allocate<KMeansNode>(); in buildIndex()
628 node = pool_.allocate<KMeansNode>(); in load_tree()
638 node->childs = pool_.allocate<KMeansNodePtr>(branching_); in load_tree()
844 node->childs = pool_.allocate<KMeansNodePtr>(branching); in computeClustering()
866 node->childs[c] = pool_.allocate<KMeansNode>(); in computeClustering()
1157 PooledAllocator pool_; variable
Dkdtree_single_index.h200 …return (int)(pool_.usedMemory+pool_.wastedMemory+dataset_.rows*sizeof(int)); // pool memory and v… in usedMemory()
303 tree = pool_.allocate<Node>(); in load_tree()
341 NodePtr node = pool_.allocate<Node>(); // allocate memory in divideTree()
627 PooledAllocator pool_; variable
/external/libchrome/testing/
Dplatform_test.h30 NSAutoreleasePool* pool_;

12