non-critical output primitives -- depending on thread-safe TextIO, while races wrt. flushing should not matter;
authorwenzelm
Sat, 28 Aug 2010 15:25:32 +0200
changeset 38839 be9dace0ff58
parent 38838 62f6ba39b3d4
child 38840 ec75dc58688b
non-critical output primitives -- depending on thread-safe TextIO, while races wrt. flushing should not matter;
src/Pure/General/output.ML
--- a/src/Pure/General/output.ML	Fri Aug 27 22:30:25 2010 +0200
+++ b/src/Pure/General/output.ML	Sat Aug 28 15:25:32 2010 +0200
@@ -79,11 +79,8 @@
 
 (* output primitives -- normally NOT used directly!*)
 
-fun std_output s = NAMED_CRITICAL "IO" (fn () =>
-  (TextIO.output (TextIO.stdOut, s); TextIO.flushOut TextIO.stdOut));
-
-fun std_error s = NAMED_CRITICAL "IO" (fn () =>
-  (TextIO.output (TextIO.stdErr, s); TextIO.flushOut TextIO.stdErr));
+fun std_output s = (TextIO.output (TextIO.stdOut, s); TextIO.flushOut TextIO.stdOut);
+fun std_error s = (TextIO.output (TextIO.stdErr, s); TextIO.flushOut TextIO.stdErr);
 
 fun writeln_default "" = ()
   | writeln_default s = std_output (suffix "\n" s);