32 instantiations of AutoResetEvent
Microsoft.AspNetCore.Components.Tests (1)
RendererTest.cs (1)
4896var autoResetEvent = new AutoResetEvent(false);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
RuntimeViewCompilerTest.cs (1)
579var resetEvent1 = new AutoResetEvent(initialState: false);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
ResourceMonitoringServiceTests.cs (3)
316using var autoResetEvent = new AutoResetEvent(false); 446using var autoResetEvent = new AutoResetEvent(false); 555using var autoResetEvent = new AutoResetEvent(false);
Microsoft.Extensions.ML.Tests (3)
FileLoaderTests.cs (1)
69using AutoResetEvent changed = new AutoResetEvent(false);
UriLoaderTests.cs (2)
50using AutoResetEvent changed = new AutoResetEvent(false); 72using AutoResetEvent changed = new AutoResetEvent(false);
Microsoft.ML.FastTree (3)
GamModelParameters.cs (1)
924AutoResetEvent ev = new AutoResetEvent(false);
SumupPerformanceCommand.cs (2)
279AutoResetEvent[] events = Utils.BuildArray(_parallel, i => new AutoResetEvent(false)); 280AutoResetEvent[] mainEvents = Utils.BuildArray(_parallel, i => new AutoResetEvent(false));
Microsoft.ML.StandardTrainers (1)
Optimizer\DifferentiableFunction.cs (1)
73_threadFinished[i] = new AutoResetEvent(false);
PresentationCore (6)
MS\Internal\IO\Packaging\NetStream.cs (2)
96_readEventHandles[(int)ReadEvent.ByteRangeReadEvent] = new AutoResetEvent(false); 101_readEventHandles[(int)ReadEvent.FullDownloadReadEvent] = new AutoResetEvent(false);
System\Windows\Input\Stylus\Common\DynamicRendererThreadManager.cs (1)
292_startupCompleted = new AutoResetEvent(false);
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (1)
68_doneEvent = new AutoResetEvent(false);
System\Windows\Media\Imaging\BitmapDownload.cs (2)
49_waitEvent = new AutoResetEvent(false); 424internal static AutoResetEvent _waitEvent = new AutoResetEvent(false);
System.Net.Requests (1)
System\Net\TimerThread.cs (1)
89private static readonly AutoResetEvent s_threadReadyEvent = new AutoResetEvent(false);
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (1)
165s_pollingThreadSleepEvent = new AutoResetEvent(false);
src\libraries\System.Private.CoreLib\src\System\Threading\Condition.cs (1)
17public AutoResetEvent ev = new AutoResetEvent(false);
src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
653var newWaitEvent = new AutoResetEvent(false);
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.GateThread.cs (2)
20private static readonly AutoResetEvent RunGateThreadEvent = new AutoResetEvent(initialState: true); 21private static readonly AutoResetEvent DelayEvent = new AutoResetEvent(initialState: false);
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (1)
176private readonly AutoResetEvent _changeHandlesEvent = new AutoResetEvent(false);
src\libraries\System.Private.CoreLib\src\System\Threading\RegisteredWaitHandle.Portable.cs (1)
77new AutoResetEvent(false);
src\libraries\System.Private.CoreLib\src\System\Threading\TimerQueue.Portable.cs (1)
21private static readonly AutoResetEvent s_timerEvent = new AutoResetEvent(false);
System.Threading (1)
System\Threading\ReaderWriterLock.cs (1)
1046currentEvent = new AutoResetEvent(false);
UIAutomationClient (2)
MS\Internal\Automation\QueueProcessor.cs (2)
39_ev = new AutoResetEvent(false); 209_ev = new AutoResetEvent(false);
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\QueueProcessor.cs (2)
32_ev = new AutoResetEvent(false); 208_ev = new AutoResetEvent (false);
62 references to AutoResetEvent
Microsoft.AspNetCore.Components.Tests (1)
RendererTest.cs (1)
4896var autoResetEvent = new AutoResetEvent(false);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
RuntimeViewCompilerTest.cs (1)
579var resetEvent1 = new AutoResetEvent(initialState: false);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Diagnostics\AbstractWorkspacePullDiagnosticsHandler.cs (1)
118/// An <see cref="AutoResetEvent"/> with two differences: it supports async waiting, and in the case Set() releases a waiter, it releases all waiters rather than just one.
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (4)
ResourceMonitoringServiceTests.cs (4)
316using var autoResetEvent = new AutoResetEvent(false); 446using var autoResetEvent = new AutoResetEvent(false); 555using var autoResetEvent = new AutoResetEvent(false); 757private static void ResilientSetEvent(AutoResetEvent e)
Microsoft.Extensions.ML.Tests (3)
FileLoaderTests.cs (1)
69using AutoResetEvent changed = new AutoResetEvent(false);
UriLoaderTests.cs (2)
50using AutoResetEvent changed = new AutoResetEvent(false); 72using AutoResetEvent changed = new AutoResetEvent(false);
Microsoft.ML.FastTree (7)
GamModelParameters.cs (1)
924AutoResetEvent ev = new AutoResetEvent(false);
SumupPerformanceCommand.cs (6)
279AutoResetEvent[] events = Utils.BuildArray(_parallel, i => new AutoResetEvent(false)); 280AutoResetEvent[] mainEvents = Utils.BuildArray(_parallel, i => new AutoResetEvent(false)); 294AutoResetEvent ev = events[w]; 295AutoResetEvent mev = mainEvents[w]; 320foreach (var e in events) 322foreach (var e in mainEvents)
Microsoft.ML.StandardTrainers (3)
Optimizer\DifferentiableFunction.cs (3)
48private readonly AutoResetEvent[] _threadFinished; 71_threadFinished = new AutoResetEvent[threads]; 129AutoResetEvent.WaitAll(_threadFinished);
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1120[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.AutoResetEvent))]
netstandard (1)
netstandard.cs (1)
2067[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.AutoResetEvent))]
PresentationCore (4)
System\Windows\Input\Stylus\Common\DynamicRendererThreadManager.cs (1)
281private AutoResetEvent _startupCompleted;
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (2)
64private AutoResetEvent _doneEvent; 93internal AutoResetEvent DoneEvent
System\Windows\Media\Imaging\BitmapDownload.cs (1)
424internal static AutoResetEvent _waitEvent = new AutoResetEvent(false);
System.Net.Requests (1)
System\Net\TimerThread.cs (1)
89private static readonly AutoResetEvent s_threadReadyEvent = new AutoResetEvent(false);
System.Private.CoreLib (20)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (2)
272private static AutoResetEvent? s_pollingThreadSleepEvent; 279AutoResetEvent? sleepEvent = null;
src\libraries\System.Private.CoreLib\src\System\Threading\Condition.cs (1)
17public AutoResetEvent ev = new AutoResetEvent(false);
src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (5)
54private AutoResetEvent? _waitEvent; 515AutoResetEvent waitEvent = _waitEvent ?? CreateWaitEvent(areContentionEventsEnabled); 651private AutoResetEvent CreateWaitEvent(bool areContentionEventsEnabled) 653var newWaitEvent = new AutoResetEvent(false); 654AutoResetEvent? waitEventBeforeUpdate = Interlocked.CompareExchange(ref _waitEvent, newWaitEvent, null);
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.GateThread.cs (2)
20private static readonly AutoResetEvent RunGateThreadEvent = new AutoResetEvent(initialState: true); 21private static readonly AutoResetEvent DelayEvent = new AutoResetEvent(initialState: false);
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (1)
176private readonly AutoResetEvent _changeHandlesEvent = new AutoResetEvent(false);
src\libraries\System.Private.CoreLib\src\System\Threading\RegisteredWaitHandle.Portable.cs (5)
19private static AutoResetEvent? s_cachedEvent; 47private AutoResetEvent? _callbacksComplete; 49private AutoResetEvent? _removed; 75private static AutoResetEvent RentEvent() => 79private static void ReturnEvent(AutoResetEvent resetEvent)
src\libraries\System.Private.CoreLib\src\System\Threading\TimerQueue.Portable.cs (3)
21private static readonly AutoResetEvent s_timerEvent = new AutoResetEvent(false); 54AutoResetEvent timerEvent = s_timerEvent; 80AutoResetEvent timerEvent = s_timerEvent;
src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.Unix.cs (1)
70/// - For an <see cref="AutoResetEvent"/>, Set/Set in quick succession requires that it wakes up two threads, implying
System.Threading (11)
artifacts\obj\System.Threading\Debug\net11.0\System.Threading.Forwards.cs (1)
7[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.AutoResetEvent))]
System\Threading\ReaderWriterLock.cs (10)
40private AutoResetEvent? _writerEvent; 363AutoResetEvent? writerEvent = null; 471AutoResetEvent? writerEvent = null; 585AutoResetEvent? writerEvent = null; 1038private AutoResetEvent GetOrCreateWriterEvent() 1040AutoResetEvent? currentEvent = _writerEvent; 1047AutoResetEvent? previousEvent = Interlocked.CompareExchange(ref _writerEvent, currentEvent, null); 1072private AutoResetEvent? TryGetOrCreateWriterEvent() 1093AutoResetEvent? writerEvent = _writerEvent; 1124/// create an <see cref="AutoResetEvent"/>). For all other exceptions, a
UIAutomationClient (2)
MS\Internal\Automation\QueueProcessor.cs (2)
188private AutoResetEvent _ev; // notifies when new queue items show up 244internal AutoResetEvent _ev;
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\QueueProcessor.cs (2)
155private AutoResetEvent _ev; 240internal AutoResetEvent _ev;