/** * 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); }
/** * Gets this threads work queue. * * @return The queue. */ public WorkQueue<Work> getQueue() { return scheduler.get(threadIndex); }