equal
deleted
inserted
replaced
602 * serialVersionUID to suppress a javac warning. |
602 * serialVersionUID to suppress a javac warning. |
603 */ |
603 */ |
604 private static final long serialVersionUID = 6138294804551838833L; |
604 private static final long serialVersionUID = 6138294804551838833L; |
605 |
605 |
606 /** Thread this worker is running in. Null if factory fails. */ |
606 /** Thread this worker is running in. Null if factory fails. */ |
|
607 @SuppressWarnings("serial") // Unlikely to be serializable |
607 final Thread thread; |
608 final Thread thread; |
608 /** Initial task to run. Possibly null. */ |
609 /** Initial task to run. Possibly null. */ |
|
610 @SuppressWarnings("serial") // Not statically typed as Serializable |
609 Runnable firstTask; |
611 Runnable firstTask; |
610 /** Per-thread task counter */ |
612 /** Per-thread task counter */ |
611 volatile long completedTasks; |
613 volatile long completedTasks; |
612 |
614 |
613 // TODO: switch to AbstractQueuedLongSynchronizer and move |
615 // TODO: switch to AbstractQueuedLongSynchronizer and move |