Lines Matching refs:allocator
46 std::shared_ptr<C2Allocator> allocator; in fetchAllocator() local
49 allocator = iter->second.lock(); in fetchAllocator()
50 if (allocator != nullptr) { in fetchAllocator()
51 return allocator; in fetchAllocator()
55 allocator.reset(createAllocator(allocatorId)); in fetchAllocator()
56 sCacheAllocators[allocatorId] = allocator; in fetchAllocator()
57 return allocator; in fetchAllocator()
63 std::shared_ptr<C2Allocator> allocator = fetchAllocator(allocatorId); in createBlockPool() local
64 if (allocator == nullptr) { in createBlockPool()
71 return new C2VdaPooledBlockPool(allocator, poolId); in createBlockPool()
74 return new C2VdaBqBlockPool(allocator, poolId); in createBlockPool()
77 return new C2PooledBlockPool(allocator, poolId); in createBlockPool()
80 return new C2VdaBqBlockPool(allocator, poolId); in createBlockPool()