Use the future helper
This commit is contained in:
parent
f4b6323050
commit
bd4057e927
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue