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

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

Set the priority to use while a FJTaskRunner is actively running tasks. Default is the priority that was in effect by the thread that constructed this FJTaskRunnerGroup. Setting this value while threads are running may momentarily result in them running at this priority even when idly waiting for work.

Definition at line 370 of file FJTaskRunnerGroup.java.

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

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

Generated by  Doxygen 1.6.0   Back to index