Compare commits

...

2 Commits

Author SHA1 Message Date
Mike-debug b2129904cb
Merge 7c540b9b5f into d8a87863aa 2025-10-24 13:01:06 +05:30
mike_debug 7c540b9b5f debug_DispatchQueue_ThreadPool_DeadLock 2025-05-30 09:57:19 +08:00
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