Ignore:
Timestamp:
2015-05-04T23:46:23+02:00 (10 years ago)
Author:
donvip
Message:

fix #11404 - High CPU load during tile loading in TMS layer and download box (patch by wiktorn)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Tile.java

    r30900 r31118  
    4949    protected BufferedImage image;
    5050    protected String key;
    51     protected boolean loaded = false;
    52     protected boolean loading = false;
    53     protected boolean error = false;
     51    protected volatile boolean loaded = false; // field accessed by multiple threads without any monitors, needs to be volatile
     52    protected volatile boolean loading = false;
     53    protected volatile boolean error = false;
    5454    protected String error_message;
    5555
Note: See TracChangeset for help on using the changeset viewer.