Home
last modified time | relevance | path

Searched refs:CoRoutine (Results 1 - 7 of 7) sorted by relevance

/foundation/resourceschedule/ffrt/src/eu/
H A Dco_routine_factory.cpp20 CoRoutine *CoRoutineAllocMem(std::size_t stack_size) in CoRoutineAllocMem()
22 return ffrt::QSimpleAllocator<CoRoutine>::AllocMem(stack_size); in CoRoutineAllocMem()
25 void CoRoutineFreeMem(CoRoutine *co) in CoRoutineFreeMem()
27 ffrt::QSimpleAllocator<CoRoutine>::FreeMem(co); in CoRoutineFreeMem()
32 ffrt::QSimpleAllocator<CoRoutine>::releaseMem(); in CoRoutineReleaseMem()
37 QSimpleAllocator<CoRoutine>::Instance(size); in CoRoutineInstance()
H A Dco_routine_factory.h23 CoRoutine *CoRoutineAllocMem(std::size_t stack_size);
24 void CoRoutineFreeMem(CoRoutine *co);
H A Dco_routine.cpp53 static inline void CoStackCheck(CoRoutine* co) in CoStackCheck()
221 static inline void CoExit(CoRoutine* co, bool isNormalTask) in CoExit()
234 CoRoutine* co = reinterpret_cast<CoRoutine*>(arg); in CoStartEntry()
261 static void CoSetStackProt(CoRoutine* co, int prot) in CoSetStackProt()
272 static_cast<unsigned long>(sizeof(struct CoRoutine)), static_cast<unsigned long>(mp), in CoSetStackProt()
276 static inline CoRoutine* AllocNewCoRoutine(size_t stackSize)
279 CoRoutine* co = nullptr;
283 co = static_cast<CoRoutine*>(mmap(nullptr, stackSize,
285 if (co == reinterpret_cast<CoRoutine*>(MAP_FAILE
[all...]
H A Dco_routine.h41 struct CoRoutine;
65 CoRoutine* runningCo = nullptr;
76 struct CoRoutine { struct
81 uint64_t allocatedSize; // CoRoutine allocated size
/foundation/resourceschedule/ffrt/src/tm/
H A Dtask_base.h65 CoRoutine* coRoutine = nullptr;
/foundation/resourceschedule/ffrt/src/dfx/dump/
H A Ddump.cpp78 uintptr_t stackBottom = reinterpret_cast<uintptr_t>(reinterpret_cast<char*>(co) + sizeof(CoRoutine) - 8); in DumpTask()
/foundation/resourceschedule/ffrt/src/core/
H A Dtask.cpp585 *stack_addr = static_cast<void*>(reinterpret_cast<char*>(co) + sizeof(CoRoutine) - 8); in ffrt_get_current_coroutine_stack()

Completed in 3 milliseconds