mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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()
|
void cancellPending()
|
||||||
{
|
{
|
||||||
std::unique_lock<std::mutex> lock(jobsLeftMutex);
|
std::unique_lock<std::mutex> lock(queueMutex);
|
||||||
_queue = std::queue<std::function<void(void)>>();
|
_queue = std::queue<std::function<void(void)>>();
|
||||||
jobsLeft = 0;
|
jobsLeft = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user