mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Update ThreadPool.cpp
This commit is contained in:
parent
ba6595cd17
commit
da496cba01
@ -114,7 +114,7 @@ ReturnType ThreadPoolImpl<Thread>::scheduleImpl(Job job, int priority, std::opti
|
||||
return on_error();
|
||||
|
||||
/// We must not to allocate any memory after we emplaced a job in a queue.
|
||||
/// Bacause if an exception would be thrown, we won't notify a thread about job occurrence.
|
||||
/// Because if an exception would be thrown, we won't notify a thread about job occurrence.
|
||||
|
||||
/// Check if there are enough threads to process job.
|
||||
if (threads.size() < std::min(max_threads, scheduled_jobs + 1))
|
||||
|
Loading…
Reference in New Issue
Block a user