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

Method setQueueSize

src/Common/ThreadPool.cpp:262–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260
261template <typename Thread>
262void ThreadPoolImpl<Thread>::setQueueSize(size_t value)
263{
264 std::lock_guard lock(mutex);
265 queue_size = value ? std::max(value, max_threads) : 0;
266 /// Reserve memory to get rid of allocations
267 jobs.reserve(std::min(queue_size, MAX_JOBS_TO_RESERVE));
268}
269
270template <typename Thread>
271template <typename ReturnType>

Calls 3

maxFunction · 0.70
minFunction · 0.50
reserveMethod · 0.45

Tested by

no test coverage detected