1 write to StaThread
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Threading\StaTaskScheduler.cs (1)
67
StaThread
= new Thread(() =>
8 references to StaThread
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (8)
Threading\StaTaskScheduler.cs (7)
25
public bool IsRunningInScheduler =>
StaThread
.ManagedThreadId == Environment.CurrentManagedThreadId;
89
StaThread
.Name = $"{nameof(StaTaskScheduler)} thread";
90
StaThread
.IsBackground = true;
91
StaThread
.SetApartmentState(ApartmentState.STA);
92
StaThread
.Start();
113
if (
StaThread
.IsAlive)
116
StaThread
.Join();
Threading\WpfTestRunner.cs (1)
59
Debug.Assert(sta.
StaThread
== Thread.CurrentThread);