Skip to content

Commit ecf4854

Browse files
committed
Fixed cppcheck
1 parent fded2b4 commit ecf4854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cpr/threadpool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class ThreadPool {
186186
{
187187
std::unique_lock lock(taskQueueMutex);
188188
if (idleThreadCount <= tasks.size() && curThreadCount < maxThreadCount) {
189-
const std::unique_lock lock(controlMutex);
189+
const std::unique_lock lockControl(controlMutex);
190190
if (state == State::RUNNING) {
191191
addThread();
192192
}

0 commit comments

Comments
 (0)