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

final synchronized FJTask scala::actors::FJTaskRunner::take (  )  [inline, protected]

Take a task from the base of the DEQ. Always called by other threads via scan()

Definition at line 523 of file FJTaskRunner.java.

References base, confirmTake(), and top.

Referenced by confirmPop(), pop(), run(), scan(), and scanWhileIdling().


      Increment base in order to suppress a contending pop
    int b = base++;     
    if (b < top) 
      return confirmTake(b);
    else {
      // back out
      base = b; 
      return null;

Generated by  Doxygen 1.6.0   Back to index