提交 ad6d25ac 编写于 作者: K Kevin Pilch-Bisson 提交者: Jared Parsons

Start getting tests running

上级 b30a795e
......@@ -14,10 +14,7 @@ namespace Microsoft.CodeAnalysis.Editor.Shared.Utilities
/// </summary>
internal class ForegroundThreadAffinitizedObject
{
[ThreadStatic]
private static Thread s_foregroundThread;
[ThreadStatic]
private static TaskScheduler s_foregroundTaskScheduler;
internal static Thread ForegroundThread
......
......@@ -13,8 +13,7 @@ public static class WaitHelper
{
public static void WaitForDispatchedOperationsToComplete(DispatcherPriority priority)
{
Action action = delegate { };
new FrameworkElement().Dispatcher.Invoke(action, priority);
new FrameworkElement().Dispatcher.DoEvents();
}
public static void PumpingWait(this Task task)
......
......@@ -18,7 +18,7 @@ public static void DoEvents(this Dispatcher dispatcher)
// complete mark the frame as complete so the dispatcher loop
// pops out (stops).
var operation = dispatcher.BeginInvoke(
DispatcherPriority.Background, callback, frame);
DispatcherPriority.SystemIdle, callback, frame);
// Start the loop. It will process all items in the queue, then
// will process the above callback. That callback will tell the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册