소스 검색

* Call SysFlushStdio from FlushThread, instead of duplicating its functionality.
* Don't call FlushThread from EndThread, since r17798 it is called from DoneThread.

git-svn-id: trunk@18018 -

sergei 14 년 전
부모
커밋
24c3a43b35
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 6
      rtl/inc/thread.inc

+ 1 - 6
rtl/inc/thread.inc

@@ -124,18 +124,13 @@ procedure FlushThread;
 
 begin
 {$ifdef FPC_HAS_FEATURE_CONSOLEIO}
-  { Make sure that all output is written to the redirected file }
-  Flush(Output);
-  Flush(ErrOutput);
-  Flush(StdOut);
-  Flush(StdErr);
+  SysFlushStdio;
 {$endif FPC_HAS_FEATURE_CONSOLEIO}
 end;
 
 procedure EndThread(ExitCode : DWord);
 
 begin
-  FlushThread;
   CurrentTM.EndThread(ExitCode);
 end;