| 63 | } |
| 64 | } |
| 65 | void JudgingController::stop() { |
| 66 | if (! isJudging) |
| 67 | return; |
| 68 | isJudging = false; |
| 69 | for (auto [taskJudger, thread] : runningTasks.toStdMap()) { |
| 70 | QMetaObject::invokeMethod(taskJudger, &TaskJudger::stop); |
| 71 | } |
| 72 | // emit judgeFinished(); |
| 73 | } |
| 74 | void JudgingController::addTask(TaskJudger *taskJudger) { queuingTasks.push_back(taskJudger); } |
nothing calls this directly
no outgoing calls
no test coverage detected