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/dialogs/InspectPrimitiveDialog.java

    r7447 r7448  
    337337        double scale = nc.getDist100Pixel();
    338338
    339         synchronized (MapCSSStyleSource.STYLE_SOURCE_LOCK) {
     339        MapCSSStyleSource.STYLE_SOURCE_LOCK.readLock().lock();
     340        try {
    340341            for (OsmPrimitive osm : sel) {
    341342                txtMappaint.append(tr("Styles Cache for \"{0}\":", osm.getDisplayName(DefaultNameFormatter.getInstance())));
     
    362363                txtMappaint.append("\n\n");
    363364            }
     365        } finally {
     366            MapCSSStyleSource.STYLE_SOURCE_LOCK.readLock().unlock();
    364367        }
    365368        if (sel.size() == 2) {
Note: See TracChangeset for help on using the changeset viewer.