private static void stoppingAnimation(Thread me){
  final FetcherInfo info=FetcherInfo.getFetcherInfo();
synchronized (info.waitList) {
    int index=-1;
    for (int i=0; i < info.fetchers.length; i++) {
      if (info.fetchers[i] == me) {
        return;
      }
      if (info.fetchers[i] == null) {
        index=i;
      }
    }
    if (index >= 0) {
      info.fetchers[index]=me;
      info.numFetchers++;
      me.setName("Image Fetcher " + index);
      return;
    }
  }
}

private static void stoppingAnimation ( Thread me ) { final FetcherInfo info = FetcherInfo . getFetcherInfo ( ) ; synchronized ( info . waitList ) { int index = - 1 ; for ( int i = 0 ; i < info . fetchers . length ; i ++ ) { if ( info . fetchers [ i ] == me ) { return ; } if ( info . fetchers [ i ] == null ) { index = i ; } } if ( index >= 0 ) { info . fetchers [ index ] = me ; info . numFetchers ++ ; me . setName ( "Image Fetcher " + index ) ; return ; } } }
returns this image animator thread back to service as an imagefetcher if possible . puts it back into the array of imagefetchers and sets the thread name back to " image fetcher " . if there are already the maximum number of imagefetchers , this method simply returns , and fetchloop ( ) will drop out when it sees that this thread isn ' t one of the imagefetchers , and this thread will die .
