Skip to content

Commit

Permalink
Add back comment
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTF committed Jun 5, 2024
1 parent c291ff7 commit 9f17e07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/ConcurrentCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 9f17e07

Please sign in to comment.