MCPcopy Create free account
hub / github.com/ByConity/ByConity / createTask

Method createTask

src/Core/BackgroundSchedulePool.cpp:244–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242
243
244BackgroundSchedulePool::TaskHolder BackgroundSchedulePool::createTask(const std::string & name, const TaskFunc & function)
245{
246 return TaskHolder(std::make_shared<TaskInfo>(*this, name, function));
247}
248
249
250void BackgroundSchedulePool::scheduleDelayedTask(const TaskInfoPtr & task, size_t ms, std::lock_guard<std::mutex> & /* task_schedule_mutex_lock */)

Calls

no outgoing calls

Tested by

no test coverage detected