Ignore:
Timestamp:
2015-09-08T15:29:07+02:00 (9 years ago)
Author:
simon04
Message:

jmapviewer: Give bing attribution fetcher thread a name

File:
1 edited

Legend:

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

    r31536 r31538  
    1414import java.util.concurrent.Executors;
    1515import java.util.concurrent.Future;
     16import java.util.concurrent.ThreadFactory;
    1617import java.util.concurrent.TimeUnit;
    1718import java.util.concurrent.TimeoutException;
     
    257258            synchronized (BingAerialTileSource.class) {
    258259                if (attributions == null) {
    259                     attributions = Executors.newSingleThreadExecutor().submit(getAttributionLoaderCallable());
     260                    attributions = Executors.newSingleThreadExecutor(new ThreadFactory() {
     261                      @Override
     262                      public Thread newThread(Runnable r) {
     263                        return new Thread(r, "bing-attribution-loader");
     264                      }
     265                    }).submit(getAttributionLoaderCallable());
    260266                }
    261267            }
Note: See TracChangeset for help on using the changeset viewer.