Unused variable and a wrong name

This commit is contained in:
Paul Ferrand 2020-09-21 09:37:19 +02:00
parent d35ff4eb42
commit 1e2ae6bce7

View file

@ -99,7 +99,7 @@ sfz::FilePool::FilePool(sfz::Logger& logger)
: logger(logger)
{
loadingJobs.reserve(config::maxVoices);
loadingJobs.reserve(config::maxVoices);
lastUsedFiles.reserve(config::maxVoices);
garbageToCollect.reserve(config::maxVoices);
}
@ -491,8 +491,6 @@ void sfz::FilePool::dispatchingJob() noexcept
void sfz::FilePool::garbageJob() noexcept
{
std::chrono::seconds counter { 0 }; // This avoids waiting to long on the thread
constexpr std::chrono::milliseconds timeAtom { 100 };
while (garbageFlag) {
semGarbageBarrier.wait();
{