Ejemplo n.º 1
0
 /**
  * Stop this parallel for loop. Once <TT>stopLoop()</TT> is called, after each parallel team
  * thread finishes executing its current chunk of iterations, each thread will execute no further
  * chunks and will proceed to finish this parallel for loop.
  *
  * @exception IllegalStateException (unchecked exception) Thrown if no parallel team is executing
  *     this parallel for loop.
  */
 public final void stopLoop() {
   if (myTeam == null) {
     throw new IllegalStateException("ParallelForLoop.stopLoop(): No parallel team executing");
   }
   mySchedule.myBreak = true;
 }