mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Use the right mutex when the queue is modified
This commit is contained in:
parent
3a9bec55f8
commit
4c93c70de6
@ -45,7 +45,7 @@ public:
|
||||
|
||||
void cancellPending()
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(jobsLeftMutex);
|
||||
std::unique_lock<std::mutex> lock(queueMutex);
|
||||
_queue = std::queue<std::function<void(void)>>();
|
||||
jobsLeft = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user