diff options
| author | 2021-05-05 16:55:01 +0000 | |
|---|---|---|
| committer | 2021-05-05 16:55:01 +0000 | |
| commit | 8dae4a80cc1e345099a90f5d24214f60bead4370 (patch) | |
| tree | fd343470d036284d2c579c11d1d4e28d6add7e05 /libs/gui/BLASTBufferQueue.cpp | |
| parent | b1f5ee4a55b1394a33c21fcb6306543db65384f9 (diff) | |
| parent | 567533eca188e287f82d99956c5d6a134b9cf8c7 (diff) | |
Merge "BLASTBufferQueue: fix AsyncWorker race condition" into sc-dev
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
| -rw-r--r-- | libs/gui/BLASTBufferQueue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp index 3d854c2b92..37fb8448ee 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -666,12 +666,12 @@ private: void run() { std::unique_lock<std::mutex> lock(mMutex); while (!mDone) { - mCv.wait(lock); while (!mRunnables.empty()) { std::function<void()> runnable = mRunnables.front(); mRunnables.pop_front(); runnable(); } + mCv.wait(lock); } } |