Example #1
0
 /**
  * Attempts to steal work from the scheduler, regardless of wether this threads queue is empty or
  * not.
  *
  * @return The stolen work. If null, no work was stolen.
  */
 public Work attemptSteal() {
   return scheduler.attemptWorkStealing(threadIndex);
 }
Example #2
0
 /**
  * Gets this threads work queue.
  *
  * @return The queue.
  */
 public WorkQueue<Work> getQueue() {
   return scheduler.get(threadIndex);
 }