Home
last modified time | relevance | path

Searched refs:QSimpleAllocator (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/resourceschedule/ffrt/src/eu/
H A Dco_routine_factory.cpp22 return ffrt::QSimpleAllocator<CoRoutine>::AllocMem(stack_size); in CoRoutineAllocMem()
27 ffrt::QSimpleAllocator<CoRoutine>::FreeMem(co); in CoRoutineFreeMem()
32 ffrt::QSimpleAllocator<CoRoutine>::releaseMem(); in CoRoutineReleaseMem()
37 QSimpleAllocator<CoRoutine>::Instance(size); in CoRoutineInstance()
/ohos5.0/foundation/resourceschedule/ffrt/src/util/
H A Dslab.h212 class QSimpleAllocator {
285 QSimpleAllocator() in QSimpleAllocator() function
290 explicit QSimpleAllocator(std::size_t size = sizeof(T)) : curAllocated(0), maxAllocated(0)
299 QSimpleAllocator(QSimpleAllocator const&) = delete;
300 void operator=(QSimpleAllocator const&) = delete;
302 static QSimpleAllocator<T, MmapSz>* Instance(std::size_t size) in Instance()
304 static QSimpleAllocator<T, MmapSz> ins(size); in Instance()