833 |
|
private RunnableScheduledFuture<?>[] queue = |
834 |
|
new RunnableScheduledFuture<?>[INITIAL_CAPACITY]; |
835 |
|
private final ReentrantLock lock = new ReentrantLock(); |
836 |
< |
private int size = 0; |
836 |
> |
private int size; |
837 |
|
|
838 |
|
/** |
839 |
|
* Thread designated to wait for the task at the head of the |
851 |
|
* signalled. So waiting threads must be prepared to acquire |
852 |
|
* and lose leadership while waiting. |
853 |
|
*/ |
854 |
< |
private Thread leader = null; |
854 |
> |
private Thread leader; |
855 |
|
|
856 |
|
/** |
857 |
|
* Condition signalled when a newer task becomes available at the |