Changeset 8401 in josm for trunk/src/org/openstreetmap/josm/data/cache
- Timestamp:
- 2015-05-20T02:46:51+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
r8397 r8401 63 63 64 64 public static class LIFOQueue extends LinkedBlockingDeque<Runnable> { 65 66 /** 67 * Constructs a new {@code LIFOQueue} with a capacity of {@link Integer#MAX_VALUE}. 68 */ 65 69 public LIFOQueue() { 66 70 super(); 67 71 } 68 72 73 /** 74 * Constructs a new {@code LIFOQueue} with the given (fixed) capacity. 75 * @param capacity the capacity of this deque 76 * @throws IllegalArgumentException if {@code capacity} is less than 1 77 */ 69 78 public LIFOQueue(int capacity) { 70 79 super(capacity); … … 83 92 84 93 85 /* 94 /** 86 95 * ThreadPoolExecutor starts new threads, until THREAD_LIMIT is reached. Then it puts tasks into LIFOQueue, which is fairly 87 96 * small, but we do not want a lot of outstanding tasks queued, but rather prefer the class consumer to resubmit the task, which are
Note:
See TracChangeset
for help on using the changeset viewer.