MCPcopy Create free account
hub / github.com/Project-LemonLime/Project_LemonLime / taskFinished

Method taskFinished

src/core/judgingcontroller.cpp:36–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void JudgingController::taskFinished() {
37 auto *taskJudger = qobject_cast<TaskJudger *>(sender());
38 if (taskJudger == nullptr) {
39 return;
40 }
41 if (runningTasks.count(taskJudger)) {
42 auto *thread = runningTasks[taskJudger];
43 thread->quit();
44 thread->wait();
45 delete thread;
46 runningTasks.remove(taskJudger);
47 delete taskJudger;
48 }
49 assign();
50 if (runningTasks.empty()) {
51 isJudging = false;
52 emit judgeFinished();
53 }
54}
55void JudgingController::start() {
56 if (queuingTasks.size() == 0) {
57 emit judgeFinished();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected