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/data/osm/visitor/paint/StyledMapRenderer.java

    r7447 r7448  
    13431343        @Override
    13441344        public List<StyleRecord> call() throws Exception {
    1345             synchronized (MapCSSStyleSource.STYLE_SOURCE_LOCK) {
     1345            MapCSSStyleSource.STYLE_SOURCE_LOCK.readLock().lock();
     1346            try {
    13461347                for (int i = from; i<to; i++) {
    13471348                    OsmPrimitive osm = input.get(i);
     
    13511352                }
    13521353                return output;
     1354            } finally {
     1355                MapCSSStyleSource.STYLE_SOURCE_LOCK.readLock().unlock();
    13531356            }
    13541357        }
Note: See TracChangeset for help on using the changeset viewer.