| 376 | } |
| 377 | |
| 378 | void GenericDevExecutor::OnSubgraphDone(Subgraph* sub_graph, bool exec_success) |
| 379 | { |
| 380 | SubgraphTask* task = SubgraphTask::GetSubgraphTask(sub_graph); |
| 381 | |
| 382 | // move the task from RUN QUEUE to WAIT QUEUE |
| 383 | task->Lock(); // as this is an callback function, to protect the ops in SchedTask()/RunTask() |
| 384 | |
| 385 | RemoveQueue(kRunQueue, task); |
| 386 | |
| 387 | task->SetStatus(EXEC_STATUS_WAIT); |
| 388 | |
| 389 | InsertQueue(kWaitQueue, task); |
| 390 | |
| 391 | task->Unlock(); |
| 392 | |
| 393 | task->OnTaskDone(exec_success); |
| 394 | } |
| 395 | |
| 396 | bool GenericDevExecutor::SetGraphAttr(SubgraphTask* task, const char* name, const void* val, int size) |
| 397 | { |
nothing calls this directly
no test coverage detected