The dispatcher was not spinning

This commit is contained in:
Paul Ferrand 2020-09-19 01:17:07 +02:00
parent 8ee4105b39
commit e693e82a39

View file

@ -374,7 +374,7 @@ void sfz::FilePool::loadingJob(QueuedFileData data) noexcept
FileData::Status currentStatus = data.data->status.load();
unsigned spinCounter { 0 };
if (currentStatus == FileData::Status::Invalid) {
while (currentStatus == FileData::Status::Invalid) {
// Spin until the state changes
if (spinCounter > 1024) {
DBG("[sfizz] " << data.id << " is stuck on Invalid? Leaving the load");