Ignore:
Timestamp:
2014-08-27T20:14:45+02:00 (10 years ago)
Author:
bastiK
Message:

see #10425 - fix [7447]: lock prevented mappaint code in StyledMapRenderer from running in parallel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r7447 r7448  
    9191            if (!prim.isSelectable()) return false;
    9292            // if it isn't displayed on screen, you cannot click on it
    93             synchronized (MapCSSStyleSource.STYLE_SOURCE_LOCK) {
     93            MapCSSStyleSource.STYLE_SOURCE_LOCK.readLock().lock();
     94            try {
    9495                return !MapPaintStyles.getStyles().get(prim, getDist100Pixel(), NavigatableComponent.this).isEmpty();
     96            } finally {
     97                MapCSSStyleSource.STYLE_SOURCE_LOCK.readLock().unlock();
    9598            }
    9699        }
Note: See TracChangeset for help on using the changeset viewer.