Home
last modified time | relevance | path

Searched refs:runningCo (Results 1 - 2 of 2) sorted by relevance

/foundation/resourceschedule/ffrt/src/eu/
H A Dco_routine.cpp323 if (GetCoEnv()->runningCo) {
324 CoMemFree(GetCoEnv()->runningCo);
325 GetCoEnv()->runningCo = nullptr;
337 task->coRoutine = GetCoEnv()->runningCo;
351 if (GetCoEnv()->runningCo) { // free cached stack if it exist
352 CoMemFree(GetCoEnv()->runningCo);
354 GetCoEnv()->runningCo = task->coRoutine;
356 if (!GetCoEnv()->runningCo) { // if no cached stack, alloc one
357 GetCoEnv()->runningCo = AllocNewCoRoutine(task->stack_size);
359 if (GetCoEnv()->runningCo
[all...]
H A Dco_routine.h65 CoRoutine* runningCo = nullptr; member

Completed in 1 milliseconds