Lines Matching refs:task
40 uint64_t task = ExecuteCtx::Cur()->task ? reinterpret_cast<uint64_t>(ExecuteCtx::Cur()->task) : GetTid();
41 MutexGraph::Instance().AddNode(task, 0, false);
42 owner.store(task, std::memory_order_relaxed);
51 uint64_t task;
53 task = ExecuteCtx::Cur()->task ? reinterpret_cast<uint64_t>(ExecuteCtx::Cur()->task) : GetTid();
56 MutexGraph::Instance().AddNode(task, ownerTask, true);
58 MutexGraph::Instance().AddNode(task, 0, false);
74 owner.store(task, std::memory_order_relaxed);
82 auto task = ctx->task;
83 if ((!USE_COROUTINE) || (task == nullptr)) {
112 taskLockNums = std::make_pair(task->gid | 0x8000000000000000, 1);
120 if (taskLockNums.first == (task->gid | 0x8000000000000000)) {
133 auto task = ctx->task;
134 if ((!USE_COROUTINE) || (task == nullptr)) {
151 if (taskLockNums.first != (task->gid | 0x8000000000000000)) {
155 taskLockNums = std::make_pair(task->gid | 0x8000000000000000, 1);
167 auto task = ctx->task;
168 if ((!USE_COROUTINE) || (task == nullptr)) {
188 if (taskLockNums.first != (task->gid | 0x8000000000000000)) {
219 auto task = ctx->task;
220 if (ThreadWaitMode(task)) {
228 if (FFRT_UNLIKELY(LegacyMode(task))) {
229 task->blockType = BlockType::BLOCK_THREAD;
230 ctx->wn.task = task;
236 FFRT_BLOCK_TRACER(task->gid, mtx);
237 CoWait([this](CPUEUTask* task) -> bool {
243 list.PushBack(task->fq_we.node);
245 // The ownership of the task belongs to ReadyTaskQueue, and the task cannot be accessed any more.
263 CPUEUTask* task = we->task;
264 if (ThreadNotifyMode(task) || we->weType == 2) {
267 if (BlockThread(task)) {
268 task->blockType = BlockType::BLOCK_COROUTINE;
269 we->task = nullptr;
275 CoRoutineFactory::CoWakeFunc(task, false);