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

Method setMaxTurboThreads

src/IO/SharedThreadPools.cpp:130–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void StaticThreadPool::setMaxTurboThreads(size_t max_threads_turbo_)
131{
132 if (!instance)
133 throw Exception(ErrorCodes::LOGICAL_ERROR, "The {} is not initialized", name);
134
135 std::lock_guard lock(mutex);
136
137 max_threads_turbo = max_threads_turbo_;
138 if (turbo_mode_enabled > 0)
139 instance->setMaxThreads(max_threads_turbo);
140}
141
142/// NOLINTBEGIN(bugprone-macro-parentheses)
143#define DEFINE_STATIC_THREAD_POOL_GETTER(SUFFIX, NAME, METRIC) \

Callers 2

mainMethod · 0.80
initializeMethod · 0.80

Calls 2

ExceptionClass · 0.70
setMaxThreadsMethod · 0.45

Tested by

no test coverage detected