From bd4057e9272f888456d9b4ecb1bbf7433f891529 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Thu, 15 Oct 2020 16:51:25 +0100 Subject: [PATCH] Use the future helper --- 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 cb7faa47..056c76d6 100644 --- a/src/sfizz/FilePool.cpp +++ b/src/sfizz/FilePool.cpp @@ -485,7 +485,7 @@ void sfz::FilePool::dispatchingJob() noexcept // Clear finished jobs swapAndPopAll(loadingJobs, [](std::future& future) { - return future.wait_for(std::chrono::seconds(0)) == std::future_status::ready; + return is_ready(future); }); } }