Changeset 8734 in josm for trunk/src/org/openstreetmap/josm/Main.java
- Timestamp:
- 2015-09-08T15:20:34+02:00 (11 years ago)
- File:
-
- 1 edited
-
trunk/src/org/openstreetmap/josm/Main.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r8513 r8734 168 168 * and sequential. 169 169 */ 170 public static final ExecutorService worker = new ProgressMonitorExecutor(); 170 public static final ExecutorService worker = new ProgressMonitorExecutor("main-worker-%d", Thread.NORM_PRIORITY); 171 171 172 172 /** … … 625 625 626 626 try { 627 for (Future<Void> i : Executors.newFixedThreadPool( 628 Runtime.getRuntime().availableProcessors()).invokeAll(tasks)) { 627 final ExecutorService service = Executors.newFixedThreadPool( 628 Runtime.getRuntime().availableProcessors(), Utils.newThreadFactory("main-init-%d", Thread.NORM_PRIORITY)); 629 for (Future<Void> i : service.invokeAll(tasks)) { 629 630 i.get(); 630 631 }
Note:
See TracChangeset
for help on using the changeset viewer.
