Fix issue where async load thread misses work
Former-commit-id: a24a7b093295c5f5d69feee9fbc37c64cfa8aa03
This commit is contained in:
parent
7352e4a45f
commit
4677c62428
@ -2419,7 +2419,7 @@ public:
|
||||
for (;;) {
|
||||
std::unique_lock<std::mutex> lock(queue.mutex);
|
||||
if (queue.queuejobs.empty() && queue.queuefn.empty()) {
|
||||
if (queue.fExit)
|
||||
if (queue.queuejobs.empty() && queue.queuefn.empty() && queue.fExit)
|
||||
break;
|
||||
queue.cv.wait(lock);
|
||||
if (queue.queuejobs.empty() && queue.queuefn.empty() && queue.fExit)
|
||||
|
Loading…
x
Reference in New Issue
Block a user