Changeset 12634 in josm for trunk/src/org/openstreetmap/josm/Main.java
- Timestamp:
- 2017-08-24T15:54:00+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r12633 r12634 59 59 import org.openstreetmap.josm.gui.preferences.projection.ProjectionPreference; 60 60 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor; 61 import org.openstreetmap.josm.gui.progress.ProgressMonitorExecutor;62 61 import org.openstreetmap.josm.gui.util.GuiHelper; 63 62 import org.openstreetmap.josm.gui.util.RedirectInputMap; … … 123 122 /** 124 123 * The worker thread slave. This is for executing all long and intensive 125 * calculations. The executed runnables are guaranteed to be executed separately 126 * and sequential. 127 */ 128 public static final ExecutorService worker = new ProgressMonitorExecutor("main-worker-%d", Thread.NORM_PRIORITY); 124 * calculations. The executed runnables are guaranteed to be executed separately and sequential. 125 * @deprecated use {@link MainApplication#worker} instead 126 */ 127 @Deprecated 128 public static final ExecutorService worker = MainApplication.worker; 129 129 130 130 /** … … 855 855 protected void shutdown() { 856 856 if (!GraphicsEnvironment.isHeadless()) { 857 worker.shutdown();858 857 ImageProvider.shutdown(false); 859 858 JCSCacheManager.shutdown(); … … 867 866 } 868 867 if (!GraphicsEnvironment.isHeadless()) { 869 worker.shutdownNow();870 868 ImageProvider.shutdown(true); 871 869 }
Note:
See TracChangeset
for help on using the changeset viewer.