From 9f17e07ac0bd86bd44b7706a0b237c9d937268c1 Mon Sep 17 00:00:00 2001 From: RobinTF <83676088+RobinTF@users.noreply.github.com> Date: Wed, 5 Jun 2024 18:30:06 +0200 Subject: [PATCH] Add back comment --- src/util/ConcurrentCache.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/ConcurrentCache.h b/src/util/ConcurrentCache.h index 7b46e6e528..8a930d3dc9 100644 --- a/src/util/ConcurrentCache.h +++ b/src/util/ConcurrentCache.h @@ -344,6 +344,7 @@ class ConcurrentCache { } else if (onlyReadFromCache) { return {nullptr, CacheStatus::notInCacheAndNotComputed}; } else if (lockPtr->_inProgress.contains(key)) { + // the result is not cached, but someone else is computing it. // it is important, that we do not immediately call getResult() since // this call blocks and we currently hold a lock.