We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fded2b4 commit ecf4854Copy full SHA for ecf4854
include/cpr/threadpool.h
@@ -186,7 +186,7 @@ class ThreadPool {
186
{
187
std::unique_lock lock(taskQueueMutex);
188
if (idleThreadCount <= tasks.size() && curThreadCount < maxThreadCount) {
189
- const std::unique_lock lock(controlMutex);
+ const std::unique_lock lockControl(controlMutex);
190
if (state == State::RUNNING) {
191
addThread();
192
}
0 commit comments