From da496cba010491c062dc5ccb8094083f18525495 Mon Sep 17 00:00:00 2001 From: Nikita Mikhaylov Date: Tue, 25 May 2021 15:58:04 +0300 Subject: [PATCH] Update ThreadPool.cpp --- src/Common/ThreadPool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/ThreadPool.cpp b/src/Common/ThreadPool.cpp index 8c6f09ceb24..b9bd6c75708 100644 --- a/src/Common/ThreadPool.cpp +++ b/src/Common/ThreadPool.cpp @@ -114,7 +114,7 @@ ReturnType ThreadPoolImpl::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))