Searched refs:leader (Results 1 - 2 of 2) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
H A DDelayQueue.java58 * the leader, it waits only for the next delay to elapse, but
59 * other threads await indefinitely. The leader thread must
61 * poll(...), unless some other thread becomes leader in the
63 * an element with an earlier expiration time, the leader
65 * waiting thread, but not necessarily the current leader, is
69 private Thread leader; field in class:DelayQueue
74 * become leader.
119 leader = null;
193 if (leader != null)
197 leader
[all...]
H A DScheduledThreadPoolExecutor.java857 * the leader, it waits only for the next delay to elapse, but
858 * other threads await indefinitely. The leader thread must
860 * poll(...), unless some other thread becomes leader in the
862 * task with an earlier expiration time, the leader field is
864 * thread, but not necessarily the current leader, is
868 private Thread leader; field in class:ScheduledThreadPoolExecutor.DelayedWorkQueue
872 * head of the queue or a new thread may need to become leader.
1034 leader = null;
1097 if (leader != null)
1101 leader
[all...]

Completed in 58 milliseconds