8 references to s_suppressedThreads
System.Private.Windows.Core.TestUtilities (8)
NoAssertContext.cs (8)
34
s_suppressedThreads
.AddOrUpdate(Environment.CurrentManagedThreadId, 1, (key, oldValue) => oldValue + 1);
66
if (
s_suppressedThreads
.TryRemove(currentThread, out int count))
73
s_suppressedThreads
.TryAdd(currentThread, --count);
79
if (s_hooked &&
s_suppressedThreads
.IsEmpty)
129
if (!
s_suppressedThreads
.TryGetValue(Environment.CurrentManagedThreadId, out _))
137
if (!
s_suppressedThreads
.TryGetValue(Environment.CurrentManagedThreadId, out _))
147
if (!
s_suppressedThreads
.TryGetValue(Environment.CurrentManagedThreadId, out _))
155
if (!
s_suppressedThreads
.TryGetValue(Environment.CurrentManagedThreadId, out _))