[Swift-commit] r5781 - trunk/src/org/griphyn/vdl/karajan/lib
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Mon Apr 30 18:48:28 CDT 2012
Author: hategan
Date: 2012-04-30 18:48:28 -0500 (Mon, 30 Apr 2012)
New Revision: 5781
Modified:
trunk/src/org/griphyn/vdl/karajan/lib/RuntimeStats.java
Log:
fixed concurrend modification exception on runtimeprogress
Modified: trunk/src/org/griphyn/vdl/karajan/lib/RuntimeStats.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/RuntimeStats.java 2012-04-30 23:45:14 UTC (rev 5780)
+++ trunk/src/org/griphyn/vdl/karajan/lib/RuntimeStats.java 2012-04-30 23:48:28 UTC (rev 5781)
@@ -227,13 +227,13 @@
printStates("Final status:");
}
- public Map getSummary() {
+ public synchronized Map getSummary() {
return new HashMap<String, Integer>(counts);
}
-
+
void printStates(String prefix) {
Map<String, Integer> summary = getSummary();
- // SimpleDateFormat formatter = new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss Z");
+ // SimpleDateFormat formatter = new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss Z");
// output the results of summarization, in a relatively
// pretty form - first the preferred order listed elements,
More information about the Swift-commit
mailing list