Exemplo n.º 1
0
 private synchronized void stopProduction() {
   if (awaitingFetch) {
     ImageFetcher.remove(this);
     awaitingFetch = false;
   }
 }
Exemplo n.º 2
0
 private synchronized void startProduction() {
   if (!awaitingFetch) {
     ImageFetcher.add(this);
     awaitingFetch = true;
   }
 }