public void shutdown() { synchronized (cache) { cache.clear(); curSet.clear(); urgentImageIds.clear(); // wake any sleeping threads cache.notifyAll(); } loaderPool.shutdown(); }