Пример #1
0
 private synchronized void stopProduction() {
   if (awaitingFetch) {
     ImageFetcher.remove(this);
     awaitingFetch = false;
   }
 }
Пример #2
0
 private synchronized void startProduction() {
   if (!awaitingFetch) {
     ImageFetcher.add(this);
     awaitingFetch = true;
   }
 }