| 181 | } |
| 182 | |
| 183 | CancellableTaskContext * |
| 184 | MultitaskController::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 | |
| 199 | void |
| 200 | MultitaskController::repopulateTaskVector(void) |
no test coverage detected