From 4428ba3bf2c75c7c67afa303af65f4f78f9cb7dc Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Mon, 21 Apr 2025 09:53:03 -0500 Subject: [PATCH] Start: Apply reviewer suggestion Co-authored-by: Pieter Hijma --- src/Mod/Start/App/ThumbnailSource.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Start/App/ThumbnailSource.cpp b/src/Mod/Start/App/ThumbnailSource.cpp index 9a27bc1eac..d8d20b2617 100644 --- a/src/Mod/Start/App/ThumbnailSource.cpp +++ b/src/Mod/Start/App/ThumbnailSource.cpp @@ -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; }