public final synchronized void queueAnalyzeRequest(SearchRequest sr){
  killOldEngine(sr.engine);
  stopSearch();
  ArrayList<Move> moves=movesToSearch(sr);
  if (moves.size() == 0)   return;
  searchRequest=sr;
  handleQueue();
}

public final synchronized void queueAnalyzeRequest ( SearchRequest sr ) { killOldEngine ( sr . engine ) ; stopSearch ( ) ; ArrayList < Move > moves = movesToSearch ( sr ) ; if ( moves . size ( ) == 0 ) return ; searchRequest = sr ; handleQueue ( ) ; }
start analyzing a position .
