Changeset 8734 in josm for trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
- Timestamp:
- 2015-09-08T15:20:34+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r8660 r8734 37 37 import java.util.concurrent.ExecutorService; 38 38 import java.util.concurrent.Executors; 39 import java.util.concurrent.ThreadFactory;40 39 41 40 import javax.swing.Action; … … 95 94 96 95 boolean useThumbs = false; 97 private ExecutorService thumbsLoaderExecutor = Executors.newSingleThreadExecutor(new ThreadFactory() { 98 @Override 99 public Thread newThread(Runnable r) { 100 Thread t = new Thread(r); 101 t.setPriority(Thread.MIN_PRIORITY); 102 return t; 103 } 104 }); 96 private ExecutorService thumbsLoaderExecutor = 97 Executors.newSingleThreadExecutor(Utils.newThreadFactory("thumbnail-loader-%d", Thread.MIN_PRIORITY)); 105 98 private ThumbsLoader thumbsloader; 106 99 private boolean thumbsLoaderRunning = false;
Note:
See TracChangeset
for help on using the changeset viewer.