src/HOL/Tools/TFL/tfl.ML
changeset 32740 9dd0a2f83429
parent 32432 64f30bdd3ba1
child 32952 aeb1e44fbc19
--- a/src/HOL/Tools/TFL/tfl.ML	Tue Sep 29 14:59:24 2009 +0200
+++ b/src/HOL/Tools/TFL/tfl.ML	Tue Sep 29 16:24:36 2009 +0200
@@ -6,7 +6,7 @@
 
 signature PRIM =
 sig
-  val trace: bool ref
+  val trace: bool Unsynchronized.ref
   val trace_thms: string -> thm list -> unit
   val trace_cterm: string -> cterm -> unit
   type pattern
@@ -40,7 +40,7 @@
 structure Prim: PRIM =
 struct
 
-val trace = ref false;
+val trace = Unsynchronized.ref false;
 
 structure R = Rules;
 structure S = USyntax;
@@ -75,8 +75,8 @@
  * function contains embedded refs!
  *---------------------------------------------------------------------------*)
 fun gvvariant names =
-  let val slist = ref names
-      val vname = ref "u"
+  let val slist = Unsynchronized.ref names
+      val vname = Unsynchronized.ref "u"
       fun new() =
          if !vname mem_string (!slist)
          then (vname := Symbol.bump_string (!vname);  new())