| 367 | |
| 368 | |
| 369 | BackgroundSchedulePool::TaskHolder BackgroundSchedulePool::createTask(const StorageID & storage, const std::string & log_name, const TaskFunc & function) |
| 370 | { |
| 371 | return TaskHolder(std::shared_ptr<TaskInfo>(new TaskInfo(weak_from_this(), storage, log_name, function))); |
| 372 | } |
| 373 | |
| 374 | template<typename T> |
| 375 | UInt64 getFunctionID(const std::function<T> & func) |