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

synchronized void scala::actors::FJTaskRunnerGroup::setActive ( FJTaskRunner  t  )  [inline]

Set active status of thread t to true, and notify others that might be waiting for work.

Implements scala::actors::IFJTaskRunnerGroup.

Definition at line 559 of file FJTaskRunnerGroup.java.

References scala::actors::FJTaskRunner::active, activeCount, nstarted, and threads.

                                                     {
    if (!t.active) { 
      t.active = true;
      ++activeCount;
      if (nstarted < threads.length) 
        threads[nstarted++].start();
      else
        notifyAll();
    }
  }


Generated by  Doxygen 1.6.0   Back to index