File.read/write/append: non-critical (basic IO operations already thread-safe);
authorwenzelm
Mon, 20 Aug 2007 20:44:00 +0200
changeset 24360 a0da34cc081c
parent 24359 44556727197a
child 24361 52a14669f9e9
File.read/write/append: non-critical (basic IO operations already thread-safe);
src/Pure/General/file.ML
--- a/src/Pure/General/file.ML	Mon Aug 20 20:43:59 2007 +0200
+++ b/src/Pure/General/file.ML	Mon Aug 20 20:44:00 2007 +0200
@@ -129,14 +129,14 @@
 
 in
 
-fun read path = NAMED_CRITICAL "IO" (fn () =>
-  fail_safe TextIO.inputAll TextIO.closeIn (TextIO.openIn (platform_path path)));
+fun read path =
+  fail_safe TextIO.inputAll TextIO.closeIn (TextIO.openIn (platform_path path));
 
-fun write_list path txts = NAMED_CRITICAL "IO" (fn () =>
-  fail_safe (output txts) TextIO.closeOut (TextIO.openOut (platform_path path)));
+fun write_list path txts =
+  fail_safe (output txts) TextIO.closeOut (TextIO.openOut (platform_path path));
 
-fun append_list path txts = NAMED_CRITICAL "IO" (fn () =>
-  fail_safe (output txts) TextIO.closeOut (TextIO.openAppend (platform_path path)));
+fun append_list path txts =
+  fail_safe (output txts) TextIO.closeOut (TextIO.openAppend (platform_path path));
 
 fun write path txt = write_list path [txt];
 fun append path txt = append_list path [txt];