merged
authorwenzelm
Fri, 01 Apr 2011 18:29:10 +0200
changeset 42201 d49ffc7a19f8
parent 42200 8df8e5cc3119 (current diff)
parent 42198 ded5ba6b7bac (diff)
child 42202 f6483ed40529
child 42206 0920f709610f
merged
--- a/src/Tools/quickcheck.ML	Fri Apr 01 17:20:56 2011 +0200
+++ b/src/Tools/quickcheck.ML	Fri Apr 01 18:29:10 2011 +0200
@@ -115,12 +115,14 @@
     timings = #timings r, reports = cons (size, report) (#reports r)}
   | cons_report _ NONE result = result
 
-fun add_timing timing result_ref = (result_ref := cons_timing timing (!result_ref))
+fun add_timing timing result_ref =
+  Unsynchronized.change result_ref (cons_timing timing)
 
-fun add_report size report result_ref = (result_ref := cons_report size report (!result_ref))
+fun add_report size report result_ref =
+  Unsynchronized.change result_ref (cons_report size report)
 
 fun add_response names eval_terms response result_ref =
-  (result_ref := set_reponse names eval_terms response (!result_ref))
+  Unsynchronized.change result_ref (set_reponse names eval_terms response)
 
 (* expectation *)