mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 22:43:57 +00:00
added a comment
Change-Id: I064852e27210946caafd3efbf61645b539bced4b
This commit is contained in:
1 parent
f384a85a58
commit
d510aaffe5
1 file changed
+1
-1
+1
-1
@@ -144,7 +144,7 @@ public class TimeRangeCache<T> {
|
||||
// no writer can be active because we're holding the read lock; read access on the lruCache is synchronized using
|
||||
// the lruCache's mutex; this is necessary because we're using access-based LRU pinging where even getting an entry
|
||||
// modifies the internal parts of the data structure which is not thread safe.
|
||||
synchronized (lruCache) {
|
||||
synchronized (lruCache) { // ping the "perfect match" although it may not even have existed in the cache
|
||||
lruCache.get(new Util.Pair<TimePoint, TimePoint>(from, to));
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in new issue
Block a user