Changeset 36123 in osm for applications/editors
- Timestamp:
- 2023-08-22T23:26:55+02:00 (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pmtiles/src/main/java/org/openstreetmap/josm/plugins/pmtiles/gui/layers/PMTilesLoader.java
r36112 r36123 6 6 import java.util.Collection; 7 7 import java.util.HashSet; 8 import java.util.concurrent.ThreadPoolExecutor; 8 9 9 10 import org.apache.commons.jcs3.access.behavior.ICacheAccess; … … 24 25 */ 25 26 public class PMTilesLoader implements TileLoader { 27 private static final ThreadPoolExecutor EXECUTOR = TMSCachedTileLoader.getNewThreadPoolExecutor("pmtiles"); 26 28 private final Collection<PMTileJob> jobs = new HashSet<>(); 27 29 private final ICacheAccess<String, CacheEntry> cache; … … 46 48 @Override 47 49 public TileJob createTileLoaderJob(Tile tile) { 48 final var job = new PMTileJob(cache, options, TMSCachedTileLoader.getNewThreadPoolExecutor("pmtiles"), header, tile, directoryCache);50 final var job = new PMTileJob(cache, options, EXECUTOR, header, tile, directoryCache); 49 51 this.jobs.add(job); 50 52 return job;
Note:
See TracChangeset
for help on using the changeset viewer.