This should be synchronized as we're going to read this value from another
thread. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1954 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -122,7 +122,9 @@ public class Invoker extends LoopingThread
|
||||
if (PERF_TRACK) {
|
||||
// record the time spent on the queue as a special unit
|
||||
start = System.currentTimeMillis();
|
||||
_unitsRun++;
|
||||
synchronized (this) {
|
||||
_unitsRun++;
|
||||
}
|
||||
// record the time spent on the queue as a special unit
|
||||
recordMetrics("queue_wait_time", start - unit.queueStamp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user