Use the future helper

This commit is contained in:
Paul Ferrand 2020-10-15 16:51:25 +01:00
parent f4b6323050
commit bd4057e927

View file

@ -485,7 +485,7 @@ void sfz::FilePool::dispatchingJob() noexcept
// Clear finished jobs // Clear finished jobs
swapAndPopAll(loadingJobs, [](std::future<void>& future) { swapAndPopAll(loadingJobs, [](std::future<void>& future) {
return future.wait_for(std::chrono::seconds(0)) == std::future_status::ready; return is_ready(future);
}); });
} }
} }