From 10565e99be25d1dd58ebf49bf6c8b834f25b4caf Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Wed, 21 Oct 2020 04:00:52 +0200 Subject: [PATCH] Make it a tiny bit more efficient --- src/sfizz/FilePool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfizz/FilePool.cpp b/src/sfizz/FilePool.cpp index fd9978fc..db1a1dfb 100644 --- a/src/sfizz/FilePool.cpp +++ b/src/sfizz/FilePool.cpp @@ -496,7 +496,7 @@ void sfz::FilePool::dispatchingJob() noexcept std::lock_guard guard { loadingJobsMutex }; if (filesToLoad.try_pop(queuedData)) { - if (!queuedData.id.lock()) { + if (queuedData.id.expired()) { // file ID was nulled, it means the region was deleted, ignore } else