Lines Matching refs:CoRoutine
53 static inline void CoStackCheck(CoRoutine* co)
221 static inline void CoExit(CoRoutine* co, bool isNormalTask)
234 CoRoutine* co = reinterpret_cast<CoRoutine*>(arg);
261 static void CoSetStackProt(CoRoutine* co, int prot)
272 static_cast<unsigned long>(sizeof(struct CoRoutine)), static_cast<unsigned long>(mp),
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_FAILED)) {
295 co->stkMem.size = static_cast<uint64_t>(stackSize - sizeof(CoRoutine) + 8);
304 static inline void CoMemFree(CoRoutine* co)
478 CoRoutine* co = static_cast<CoRoutine*>(GetCoEnv()->runningCo);