| 213 | } |
| 214 | |
| 215 | void TaskScheduler::runTask(Task* task) { |
| 216 | try { |
| 217 | task->run(); |
| 218 | task->deRegisterThreadAndFinalizeTask(); |
| 219 | } catch (std::exception& e) { |
| 220 | task->setException(std::current_exception()); |
| 221 | task->deRegisterThreadAndFinalizeTask(); |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | TaskScheduler* TaskScheduler::Get(const main::ClientContext& context) { |
| 226 | return context.getDatabase()->getQueryProcessor()->getTaskScheduler(); |
nothing calls this directly
no test coverage detected