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:
mdb
2006-10-20 04:04:59 +00:00
parent 26c16e8ad4
commit bf34af7bc1
+3 -1
View File
@@ -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);
}