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

Method createTask

src/Core/BackgroundSchedulePool.cpp:369–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367
368
369BackgroundSchedulePool::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
374template<typename T>
375UInt64 getFunctionID(const std::function<T> & func)

Callers 15

mainMethod · 0.45
ReplicasReconnectorMethod · 0.45
loadIfNotMethod · 0.45
initMethod · 0.45
DiskLocalCheckThreadMethod · 0.45
BlobKillerThreadMethod · 0.45
BlobCopierThreadMethod · 0.45
DatabasePostgreSQLMethod · 0.45
TESTFunction · 0.45
startQueryMethod · 0.45
DNSCacheUpdaterMethod · 0.45

Calls 1

TaskHolderClass · 0.85

Tested by 1

TESTFunction · 0.36