Home
last modified time | relevance | path

Searched refs:MemoryPool (Results 1 – 25 of 59) sorted by relevance

123

/third_party/skia/third_party/externals/microhttpd/src/microhttpd/
Dmemorypool.h38 struct MemoryPool;
47 struct MemoryPool *
57 MHD_pool_destroy (struct MemoryPool *pool);
72 MHD_pool_allocate (struct MemoryPool *pool,
94 MHD_pool_reallocate (struct MemoryPool *pool,
110 MHD_pool_reset (struct MemoryPool *pool,
Dmemorypool.c50 struct MemoryPool struct
86 struct MemoryPool * argument
89 struct MemoryPool *pool; in MHD_pool_create()
91 pool = malloc (sizeof (struct MemoryPool)); in MHD_pool_create()
135 MHD_pool_destroy (struct MemoryPool *pool) in MHD_pool_destroy()
165 MHD_pool_allocate (struct MemoryPool *pool, in MHD_pool_allocate()
208 MHD_pool_reallocate (struct MemoryPool *pool, in MHD_pool_reallocate()
262 MHD_pool_reset (struct MemoryPool *pool, in MHD_pool_reset()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/
Dmemory_pool.h27 class MemoryPool {
44 virtual ~MemoryPool() {} in ~MemoryPool()
51 void *operator new(std::size_t, mindspore::Status *, std::shared_ptr<mindspore::dataset::MemoryPool
53 …*operator new[](std::size_t, mindspore::Status *, std::shared_ptr<mindspore::dataset::MemoryPool>);
55 void operator delete(void *, std::shared_ptr<mindspore::dataset::MemoryPool>);
57 void operator delete[](void *, std::shared_ptr<mindspore::dataset::MemoryPool>);
Dmemory_pool.cc39 …ator new(std::size_t s, mindspore::Status *rc, std::shared_ptr<mindspore::dataset::MemoryPool> b) { in operator new()
45 …or new[](std::size_t s, mindspore::Status *rc, std::shared_ptr<mindspore::dataset::MemoryPool> b) { in operator new[]()
51 void operator delete(void *p, std::shared_ptr<mindspore::dataset::MemoryPool> b) { in operator delete()
55 void operator delete[](void *p, std::shared_ptr<mindspore::dataset::MemoryPool> b) { in operator delete[]()
Dcircular_pool.h39 class CircularPool : public MemoryPool {
89 static Status CreateCircularPool(std::shared_ptr<MemoryPool> *out_pool, int max_size_in_gb = -1,
92 static Status CreateCircularPool(std::shared_ptr<MemoryPool> *out_pool, int max_size_in_gb = -1,
Dservices.h67 std::shared_ptr<MemoryPool> GetServiceMemPool() { return pool_; } in GetServiceMemPool()
108 std::shared_ptr<MemoryPool> pool_;
/third_party/skia/src/sksl/
DSkSLPool.cpp16 static thread_local MemoryPool* sMemPool = nullptr;
18 static MemoryPool* get_thread_local_memory_pool() { in get_thread_local_memory_pool()
22 static void set_thread_local_memory_pool(MemoryPool* memPool) { in set_thread_local_memory_pool()
40 pool->fMemPool = MemoryPool::Make(/*preallocSize=*/65536, /*minAllocSize=*/32768); in Create()
56 MemoryPool* memPool = get_thread_local_memory_pool(); in detachFromThread()
65 MemoryPool* memPool = get_thread_local_memory_pool(); in AllocMemory()
80 MemoryPool* memPool = get_thread_local_memory_pool(); in FreeMemory()
DSkSLMemoryPool.h20 using MemoryPool = ::GrMemoryPool; variable
29 class MemoryPool {
31 static std::unique_ptr<MemoryPool> Make(size_t, size_t) { in Make()
32 return std::make_unique<MemoryPool>(); in Make()
/third_party/node/deps/icu-small/source/common/
Dcmemory.h758 class MemoryPool : public UMemory {
760 MemoryPool() : fCount(0), fPool() {} in MemoryPool() function
762 ~MemoryPool() { in ~MemoryPool()
768 MemoryPool(const MemoryPool&) = delete;
769 MemoryPool& operator=(const MemoryPool&) = delete;
771 MemoryPool(MemoryPool&& other) U_NOEXCEPT : fCount(other.fCount), in MemoryPool() function
776 MemoryPool& operator=(MemoryPool&& other) U_NOEXCEPT {
851 class MaybeStackVector : protected MemoryPool<T, stackCapacity> {
Duloc_keytype.cpp49 static icu::MemoryPool<icu::CharString>* gKeyTypeStringPool = NULL;
50 static icu::MemoryPool<LocExtKeyData>* gLocExtKeyDataEntries = NULL;
51 static icu::MemoryPool<LocExtType>* gLocExtTypeEntries = NULL;
99 gKeyTypeStringPool = new icu::MemoryPool<icu::CharString>; in initFromResourceBundle()
104 gLocExtKeyDataEntries = new icu::MemoryPool<LocExtKeyData>; in initFromResourceBundle()
109 gLocExtTypeEntries = new icu::MemoryPool<LocExtType>; in initFromResourceBundle()
/third_party/skia/third_party/externals/icu/source/common/
Dcmemory.h758 class MemoryPool : public UMemory {
760 MemoryPool() : fCount(0), fPool() {} in MemoryPool() function
762 ~MemoryPool() { in ~MemoryPool()
768 MemoryPool(const MemoryPool&) = delete;
769 MemoryPool& operator=(const MemoryPool&) = delete;
771 MemoryPool(MemoryPool&& other) U_NOEXCEPT : fCount(other.fCount), in MemoryPool() function
776 MemoryPool& operator=(MemoryPool&& other) U_NOEXCEPT {
851 class MaybeStackVector : protected MemoryPool<T, stackCapacity> {
Duloc_keytype.cpp49 static icu::MemoryPool<icu::CharString>* gKeyTypeStringPool = NULL;
50 static icu::MemoryPool<LocExtKeyData>* gLocExtKeyDataEntries = NULL;
51 static icu::MemoryPool<LocExtType>* gLocExtTypeEntries = NULL;
99 gKeyTypeStringPool = new icu::MemoryPool<icu::CharString>; in initFromResourceBundle()
104 gLocExtKeyDataEntries = new icu::MemoryPool<LocExtKeyData>; in initFromResourceBundle()
109 gLocExtTypeEntries = new icu::MemoryPool<LocExtType>; in initFromResourceBundle()
/third_party/icu/icu4c/source/common/
Dcmemory.h758 class MemoryPool : public UMemory {
760 MemoryPool() : fCount(0), fPool() {} in MemoryPool() function
762 ~MemoryPool() { in ~MemoryPool()
768 MemoryPool(const MemoryPool&) = delete;
769 MemoryPool& operator=(const MemoryPool&) = delete;
771 MemoryPool(MemoryPool&& other) U_NOEXCEPT : fCount(other.fCount), in MemoryPool() function
776 MemoryPool& operator=(MemoryPool&& other) U_NOEXCEPT {
851 class MaybeStackVector : protected MemoryPool<T, stackCapacity> {
Duloc_keytype.cpp49 static icu::MemoryPool<icu::CharString>* gKeyTypeStringPool = NULL;
50 static icu::MemoryPool<LocExtKeyData>* gLocExtKeyDataEntries = NULL;
51 static icu::MemoryPool<LocExtType>* gLocExtTypeEntries = NULL;
99 gKeyTypeStringPool = new icu::MemoryPool<icu::CharString>; in initFromResourceBundle()
104 gLocExtKeyDataEntries = new icu::MemoryPool<LocExtKeyData>; in initFromResourceBundle()
109 gLocExtTypeEntries = new icu::MemoryPool<LocExtType>; in initFromResourceBundle()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/core/
Dglobal_context.h30 class MemoryPool; variable
77 std::shared_ptr<MemoryPool> mem_pool() const { return mem_pool_; } in mem_pool()
105 std::shared_ptr<MemoryPool> mem_pool_; // A global memory pool
/third_party/node/deps/icu-small/source/i18n/
Dunits_complexconverter.h28 template class U_I18N_API MemoryPool<units::UnitsConverter, 8>; variable
31 template class U_I18N_API MemoryPool<MeasureUnitImpl, 8>; variable
34 template class U_I18N_API MemoryPool<MeasureUnit, 8>; variable
Dnumber_longnames.h98 friend class MemoryPool<LongNameHandler>; variable
213 friend class MemoryPool<MixedUnitLongNameHandler>; variable
252 MemoryPool<LongNameHandler> fLongNameHandlers;
253 MemoryPool<MixedUnitLongNameHandler> fMixedUnitHandlers;
Dunits_data.h56 template class U_I18N_API MemoryPool<units::ConversionRateInfo, 8>; variable
149 template class U_I18N_API MemoryPool<units::UnitPreferenceMetadata, 8>; variable
152 template class U_I18N_API MemoryPool<units::UnitPreference, 8>; variable
/third_party/skia/third_party/externals/icu/source/i18n/
Dunits_complexconverter.h28 template class U_I18N_API MemoryPool<units::UnitsConverter, 8>; variable
31 template class U_I18N_API MemoryPool<MeasureUnitImpl, 8>; variable
34 template class U_I18N_API MemoryPool<MeasureUnit, 8>; variable
Dnumber_longnames.h98 friend class MemoryPool<LongNameHandler>; variable
213 friend class MemoryPool<MixedUnitLongNameHandler>; variable
252 MemoryPool<LongNameHandler> fLongNameHandlers;
253 MemoryPool<MixedUnitLongNameHandler> fMixedUnitHandlers;
Dunits_data.h56 template class U_I18N_API MemoryPool<units::ConversionRateInfo, 8>; variable
149 template class U_I18N_API MemoryPool<units::UnitPreferenceMetadata, 8>; variable
152 template class U_I18N_API MemoryPool<units::UnitPreference, 8>; variable
/third_party/icu/icu4c/source/i18n/
Dunits_complexconverter.h28 template class U_I18N_API MemoryPool<units::UnitsConverter, 8>; variable
31 template class U_I18N_API MemoryPool<MeasureUnitImpl, 8>; variable
34 template class U_I18N_API MemoryPool<MeasureUnit, 8>; variable
Dnumber_longnames.h98 friend class MemoryPool<LongNameHandler>; variable
213 friend class MemoryPool<MixedUnitLongNameHandler>; variable
252 MemoryPool<LongNameHandler> fLongNameHandlers;
253 MemoryPool<MixedUnitLongNameHandler> fMixedUnitHandlers;
Dunits_data.h56 template class U_I18N_API MemoryPool<units::ConversionRateInfo, 8>; variable
149 template class U_I18N_API MemoryPool<units::UnitPreferenceMetadata, 8>; variable
152 template class U_I18N_API MemoryPool<units::UnitPreference, 8>; variable
/third_party/mindspore/tests/ut/cpp/dataset/
Darena_test.cc54 std::shared_ptr<MemoryPool> mp = std::static_pointer_cast<MemoryPool>(arena); in TEST_F()

123