Logo Search packages:      
Sourcecode: scala version File versions  Download package

synchronized void scala::actors::FJTaskRunnerGroup::setScanPriorities ( int  pri  )  [inline]

Set the priority to use while a FJTaskRunner is polling for new tasks to perform. Default is currently Thread.MIN_PRIORITY+1. The value set may not go into effect immediately, but will be used at least the next time a thread scans for work.

Definition at line 353 of file FJTaskRunnerGroup.java.

References scala::actors::FJTaskRunner::active, scala::actors::FJTaskRunner::setScanPriority(), and threads.

                                                      {
    for (int i = 0; i < threads.length; ++i) {
      FJTaskRunner t = threads[i];
      t.setScanPriority(pri);
      if (!t.active) t.setPriority(pri);
    }
  }


Generated by  Doxygen 1.6.0   Back to index