Make it a tiny bit more efficient
This commit is contained in:
parent
0e24daf26d
commit
10565e99be
1 changed files with 1 additions and 1 deletions
|
|
@ -496,7 +496,7 @@ void sfz::FilePool::dispatchingJob() noexcept
|
|||
std::lock_guard<std::mutex> guard { loadingJobsMutex };
|
||||
|
||||
if (filesToLoad.try_pop(queuedData)) {
|
||||
if (!queuedData.id.lock()) {
|
||||
if (queuedData.id.expired()) {
|
||||
// file ID was nulled, it means the region was deleted, ignore
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue