ClickHouse/src/IO/BackupsIOThreadPool.h

21 lines
322 B
C++

#pragma once
#include <Common/ThreadPool.h>
namespace DB
{
/*
* ThreadPool used for the Backup IO.
*/
class BackupsIOThreadPool
{
static std::unique_ptr<ThreadPool> instance;
public:
static void initialize(size_t max_threads, size_t max_free_threads, size_t queue_size);
static ThreadPool & get();
};
}