MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / stop

Method stop

src/plugins/smartut/manager/uttaskpool.cpp:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void UTTaskPool::stop(bool notify)
62{
63 if (notify) {
64 for (const auto &task : taskQueue) {
65 Q_EMIT stoped(task.item);
66 }
67 }
68 taskQueue.clear();
69
70 while (!llmItemMap.isEmpty()) {
71 if (notify)
72 Q_EMIT stoped(llmItemMap.first());
73 llmItemMap.firstKey()->cancel();
74 }
75}
76
77void UTTaskPool::stop(NodeItem *item)
78{

Callers

nothing calls this directly

Calls 6

cbeginMethod · 0.80
cendMethod · 0.80
clearMethod · 0.45
isEmptyMethod · 0.45
cancelMethod · 0.45
keyMethod · 0.45

Tested by

no test coverage detected