mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Restore needed lock
This commit is contained in:
@ -45,7 +45,8 @@ public:
|
||||
|
||||
void cancellPending()
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(queueMutex);
|
||||
std::unique_lock<std::mutex> lockQueue(queueMutex);
|
||||
std::unique_lock<std::mutex> lockJobsLeft(jobsLeftMutex);
|
||||
_queue = std::queue<std::function<void(void)>>();
|
||||
jobsLeft = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user