MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / findTask

Method findTask

Suscan/MultitaskController.cpp:183–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183CancellableTaskContext *
184MultitaskController::findTask(CancellableTask *task) const
185{
186 auto it = this->reverseTaskMap.find(task);
187
188 if (it == this->reverseTaskMap.end()) {
189 fprintf(
190 stderr,
191 "warning: task %p not found in reverse map!\n",
192 static_cast<void *>(task));
193 return nullptr;
194 }
195
196 return *it;
197}
198
199void
200MultitaskController::repopulateTaskVector(void)

Callers 4

onProgressMethod · 0.95
onDoneMethod · 0.95
onCancelledMethod · 0.95
onErrorMethod · 0.95

Calls 1

endMethod · 0.45

Tested by

no test coverage detected