807 |
|
private RunnableScheduledFuture<?>[] queue = |
808 |
|
new RunnableScheduledFuture<?>[INITIAL_CAPACITY]; |
809 |
|
private final ReentrantLock lock = new ReentrantLock(); |
810 |
< |
private int size = 0; |
810 |
> |
private int size; |
811 |
|
|
812 |
|
/** |
813 |
|
* Thread designated to wait for the task at the head of the |
825 |
|
* signalled. So waiting threads must be prepared to acquire |
826 |
|
* and lose leadership while waiting. |
827 |
|
*/ |
828 |
< |
private Thread leader = null; |
828 |
> |
private Thread leader; |
829 |
|
|
830 |
|
/** |
831 |
|
* Condition signalled when a newer task becomes available at the |