Changeset 10722 in osm for applications/viewer/jmapviewer/src
- Timestamp:
- 2008-09-16T11:50:59+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JobDispatcher.java
r10368 r10722 24 24 */ 25 25 public static JobDispatcher getInstance() { 26 if (instance == null) 26 // for speed reasons we check if the instance has been created 27 // one time before we enter the synchronized section... 28 if (instance != null) 29 return instance; 30 synchronized (JobDispatcher.class) { 31 // ... and for thread safety reasons one time inside the 32 // synchronized section. 33 if (instance != null) 34 return instance; 27 35 new JobDispatcher(); 28 return instance; 36 return instance; 37 } 29 38 } 30 39
Note:
See TracChangeset
for help on using the changeset viewer.