소스 검색

Fixes #1317. Forces wakeup the mainloop in a thread.

BDisp 4 년 전
부모
커밋
5a35bcae26
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      Terminal.Gui/Core/Application.cs

+ 8 - 0
Terminal.Gui/Core/Application.cs

@@ -1223,5 +1223,13 @@ namespace Terminal.Gui {
 			}
 			return false;
 		}
+
+		/// <summary>
+		/// Wakes up the mainloop that might be waiting on input, must be thread safe.
+		/// </summary>
+		public static void DoEvents ()
+		{
+			MainLoop.Driver.Wakeup ();
+		}
 	}
 }