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

Method enableTurboMode

src/IO/SharedThreadPools.cpp:106–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void StaticThreadPool::enableTurboMode()
107{
108 if (!instance)
109 throw Exception(ErrorCodes::LOGICAL_ERROR, "The {} is not initialized", name);
110
111 std::lock_guard lock(mutex);
112
113 ++turbo_mode_enabled;
114 if (turbo_mode_enabled == 1)
115 instance->setMaxThreads(max_threads_turbo);
116}
117
118void StaticThreadPool::disableTurboMode()
119{

Calls 2

ExceptionClass · 0.70
setMaxThreadsMethod · 0.45

Tested by

no test coverage detected