mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Restore needed lock
This commit is contained in:
parent
b55c442590
commit
93596a4972
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user