Start: Apply reviewer suggestion
Co-authored-by: Pieter Hijma <pieterhijma@users.noreply.github.com>
This commit is contained in:
committed by
Benjamin Nauck
parent
42cd4d76f2
commit
4428ba3bf2
@@ -57,7 +57,9 @@ void ThumbnailSource::run()
|
||||
{
|
||||
_thumbnailPath = getPathToCachedThumbnail(_file);
|
||||
if (!useCachedThumbnail(_thumbnailPath, _file)) {
|
||||
setupF3D(); // Go through the mutex to ensure data is not stale
|
||||
// Go through the mutex to ensure data is not stale.
|
||||
// Contention on the lock is diminished because of first checking the cache.
|
||||
setupF3D();
|
||||
if (_f3d.major < 2) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user