File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -95,5 +95,11 @@ public void WaitTillFinished()
9595 DebugFileStream . Write ( "{0},WTF-\n " , DateTime . Now . Ticks ) ;
9696#endif
9797 }
98+
99+ /// <summary>Wait for the specified number of milliseconds, unless termination is signalled.</summary>
100+ public void Sleep ( int milliseconds )
101+ {
102+ TerminateEvent . WaitOne ( milliseconds ) ;
103+ }
98104 }
99105}
Original file line number Diff line number Diff line change 1- // COPYRIGHT 2022 by the Open Rails project.
1+ // COPYRIGHT 2022 by the Open Rails project.
22//
33// This file is part of Open Rails.
44//
@@ -93,7 +93,7 @@ void HostThread()
9393
9494 while ( true )
9595 {
96- Thread . Sleep ( SleepTime ) ;
96+ State . Sleep ( SleepTime ) ;
9797 if ( State . Terminated )
9898 break ;
9999 if ( ! DoHost ( ) )
You can’t perform that action at this time.
0 commit comments