31 instantiations of AutoResetEvent
Microsoft.AspNetCore.Components.Tests (1)
RendererTest.cs (1)
4895var 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)
307using var autoResetEvent = new AutoResetEvent(false); 428using var autoResetEvent = new AutoResetEvent(false); 537using 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);
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
585_formLoadWaiter = 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.Private.CoreLib (7)
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\Lock.cs (1)
613var 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)
79new 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);
59 references to AutoResetEvent
Microsoft.AspNetCore.Components.Tests (1)
RendererTest.cs (1)
4895var 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 (4)
ResourceMonitoringServiceTests.cs (4)
307using var autoResetEvent = new AutoResetEvent(false); 428using var autoResetEvent = new AutoResetEvent(false); 537using var autoResetEvent = new AutoResetEvent(false); 739private 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);
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
86Private _formLoadWaiter As AutoResetEvent
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.Private.CoreLib (18)
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\Lock.cs (5)
49private AutoResetEvent? _waitEvent; 477AutoResetEvent waitEvent = _waitEvent ?? CreateWaitEvent(areContentionEventsEnabled); 611private AutoResetEvent CreateWaitEvent(bool areContentionEventsEnabled) 613var newWaitEvent = new AutoResetEvent(false); 614AutoResetEvent? 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)
18private static AutoResetEvent? s_cachedEvent; 46private AutoResetEvent? _callbacksComplete; 48private AutoResetEvent? _removed; 77private static AutoResetEvent RentEvent() => 81private 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;
System.Threading (11)
artifacts\obj\System.Threading\Debug\net10.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;