forked from I2P_Developers/i2p.i2p
volatiles, finals
This commit is contained in:
@@ -18,10 +18,10 @@ import java.util.concurrent.atomic.AtomicLong;
|
||||
public abstract class JobImpl implements Job {
|
||||
private final RouterContext _context;
|
||||
private final JobTiming _timing;
|
||||
private static AtomicLong _idSrc = new AtomicLong();
|
||||
private static final AtomicLong _idSrc = new AtomicLong();
|
||||
private final long _id;
|
||||
//private Exception _addedBy;
|
||||
private long _madeReadyOn;
|
||||
private volatile long _madeReadyOn;
|
||||
|
||||
public JobImpl(RouterContext context) {
|
||||
_context = context;
|
||||
|
@@ -16,9 +16,9 @@ import net.i2p.util.Clock;
|
||||
* For use by the router only. Not to be used by applications or plugins.
|
||||
*/
|
||||
public class JobTiming implements Clock.ClockUpdateListener {
|
||||
private long _start;
|
||||
private long _actualStart;
|
||||
private long _actualEnd;
|
||||
private volatile long _start;
|
||||
private volatile long _actualStart;
|
||||
private volatile long _actualEnd;
|
||||
private final RouterContext _context;
|
||||
|
||||
public JobTiming(RouterContext context) {
|
||||
|
Reference in New Issue
Block a user