This commit is contained in:
Mike-debug 2025-10-27 19:52:26 +05:30 committed by GitHub
commit 8280929182
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -42,11 +42,12 @@ void
DispatchQueue::setThreadCount(size_t thread_count)
{
terminateThreads();
std::unique_lock<std::mutex> lock(lock_);
threads_.resize(thread_count);
for(size_t i = 0; i < thread_count; i++) {
threads_[i] = std::thread(&DispatchQueue::dispatch_thread_handler, this, i);
}
quit_ = false;
}
void