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

void scala::actors::FJTaskRunnerGroup::invoke ( Runnable  r  )  throws InterruptedException [inline]

Start a task and wait it out. Returns when the task completes.

Exceptions:
InterruptedException if current Thread is interrupted before completion of the task.

Definition at line 308 of file FJTaskRunnerGroup.java.

References scala::actors::FJTaskRunnerGroup::InvokableFJTask::awaitTermination(), entryQueue, scala::actors::LinkedQueue::put(), and signalNewTask().

                                                             {
    InvokableFJTask w = new InvokableFJTask(r);
    entryQueue.put(w);
    signalNewTask();
    w.awaitTermination();
  }


Generated by  Doxygen 1.6.0   Back to index