122 references to ManualResetEvent
Aspire.Hosting.Tests (2)
MSBuildTests.cs (2)
225var outputDone = new ManualResetEvent(false); 552var outputDone = new ManualResetEvent(false);
Client.ChannelLayer.IntegrationTests (2)
DuplexChannelShapeTests.4.0.0.cs (2)
146var imp = new CallbackHandler_ConcurrencyMode_Single(new ManualResetEvent(false)); 175var imp = new CallbackHandler_ConcurrencyMode_Multiple(new ManualResetEvent(false));
Client.TypedClient.IntegrationTests (1)
TypedProxyTests.4.0.0.cs (1)
463waitEvent = new ManualResetEvent(false);
Contract.Service.IntegrationTests (4)
ServiceContractTests.4.0.0.cs (4)
36ManualResetEvent waitEvent = new ManualResetEvent(false); 83ManualResetEvent waitEvent = new ManualResetEvent(false); 129ManualResetEvent waitEvent = new ManualResetEvent(false); 177ManualResetEvent waitEvent = new ManualResetEvent(false);
dotnet-svcutil-lib (7)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AsyncResult.cs (1)
62_manualResetEvent = new ManualResetEvent(_isCompleted);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (2)
1014_waitEvent = new ManualResetEvent(false); 1080_waitEvent = new ManualResetEvent(false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (1)
371_waitHandle = new ManualResetEvent(false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (1)
2193private ManualResetEvent _wait = new ManualResetEvent(false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ConcurrencyBehavior.cs (1)
210private ManualResetEvent _wait = new ManualResetEvent(false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
735private ManualResetEvent _wait = new ManualResetEvent(false);
InteractiveHost.UnitTests (4)
InteractiveHostDesktopTests.cs (4)
113var mayTerminate = new ManualResetEvent(false); 131var mayTerminate = new ManualResetEvent(false); 185var mayTerminate = new ManualResetEvent(false); 287var mayTerminate = new ManualResetEvent(false);
Microsoft.AspNetCore.Components.Server.Tests (2)
Circuits\CircuitHostTest.cs (2)
768dynamicallyAddedComponent1.Updated = new ManualResetEvent(false); 771dynamicallyAddedComponent2.Updated = new ManualResetEvent(false);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
RuntimeViewCompilerTest.cs (3)
580var resetEvent2 = new ManualResetEvent(initialState: false); 655var resetEvent1 = new ManualResetEvent(initialState: false); 656var resetEvent2 = new ManualResetEvent(initialState: false);
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (1)
387ManualResetEvent block = new ManualResetEvent(false);
HttpContextBuilderTests.cs (1)
138var block = new ManualResetEvent(false);
Microsoft.Build (10)
BackEnd\BuildManager\BuildSubmissionBase.cs (1)
43CompletionEvent = new ManualResetEvent(false);
BackEnd\BuildManager\LegacyThreadingData.cs (1)
95new ManualResetEvent(false));
BackEnd\Client\MSBuildClientPacketPump.cs (2)
88PacketPumpCompleted = new ManualResetEvent(false); 89_packetPumpShutdownEvent = new ManualResetEvent(false);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
245_noNodesActiveEvent = new ManualResetEvent(true);
BackEnd\Components\Logging\LoggingService.cs (1)
1418_emptyQueueEvent = new ManualResetEvent(false);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
119_terminateEvent = new ManualResetEvent(false);
BackEnd\Node\OutOfProcNode.cs (1)
147_shutdownEvent = new ManualResetEvent(false);
BackEnd\Node\OutOfProcServerNode.cs (1)
79_shutdownEvent = new ManualResetEvent(false);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
146private readonly ManualResetEvent _taskExecutionIdle = new ManualResetEvent(true);
Microsoft.Build.CommandLine.UnitTests (1)
MSBuildServer_Tests.cs (1)
195using ManualResetEvent mre = new ManualResetEvent(false);
Microsoft.Build.Engine.OM.UnitTests (2)
Construction\ProjectRootElement_Tests.cs (2)
1032using var done = new ManualResetEvent(false); 1103using var done = new ManualResetEvent(false);
Microsoft.Build.Engine.UnitTests (2)
BackEnd\LoggingService_Tests.cs (1)
1158using ManualResetEvent startSignal = new ManualResetEvent(false);
BackEnd\TaskBuilder_Tests.cs (1)
144using ManualResetEvent waitCommandExecuted = new ManualResetEvent(false);
Microsoft.Build.Utilities.Core (7)
ToolTask.cs (7)
86ToolCanceled = new ManualResetEvent(false); 766_standardErrorDataAvailable = new ManualResetEvent(false); 767_standardOutputDataAvailable = new ManualResetEvent(false); 771_standardOutputEOF = new ManualResetEvent(false); 772_standardErrorEOF = new ManualResetEvent(false); 775_toolExited = new ManualResetEvent(false); 777_toolTimeoutExpired = new ManualResetEvent(false);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Async\AsynchronousOperationBlocker.cs (1)
22_waitHandle = new ManualResetEvent(false);
Microsoft.CodeAnalysis.Test.Utilities (1)
FX\EventWaiter.cs (1)
17private readonly ManualResetEvent _eventSignal = new ManualResetEvent(false);
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
UtilityTest\AsyncLazyTests.cs (9)
37var synchronousComputationStartedEvent = new ManualResetEvent(initialState: false); 38var synchronousComputationShouldCompleteEvent = new ManualResetEvent(initialState: false); 145var computeFunctionRunning = new ManualResetEvent(initialState: false); 307var synchronousComputationStartedEvent = new ManualResetEvent(initialState: false); 308var synchronousComputationShouldCompleteEvent = new ManualResetEvent(initialState: false); 364var synchronousComputationStartedEvent = new ManualResetEvent(initialState: false); 365var synchronousComputationShouldCompleteEvent = new ManualResetEvent(initialState: false); 366var asynchronousComputationReadyToComplete = new ManualResetEvent(initialState: false); 367var asynchronousComputationShouldCompleteEvent = new ManualResetEvent(initialState: false);
Microsoft.Maui.Resizetizer (6)
AsyncTask.cs (6)
23 readonly ManualResetEvent logDataAvailable = new ManualResetEvent(false); 24 readonly ManualResetEvent errorDataAvailable = new ManualResetEvent(false); 25 readonly ManualResetEvent warningDataAvailable = new ManualResetEvent(false); 26 readonly ManualResetEvent customDataAvailable = new ManualResetEvent(false); 27 readonly ManualResetEvent taskCancelled = new ManualResetEvent(false); 28 readonly ManualResetEvent completed = new ManualResetEvent(false);
MSBuild (4)
OutOfProcTaskHostNode.cs (2)
217_shutdownEvent = new ManualResetEvent(false); 219_taskCancelledEvent = new ManualResetEvent(false);
XMake.cs (2)
133private static readonly ManualResetEvent s_buildComplete = new ManualResetEvent(false); 138private static readonly ManualResetEvent s_cancelComplete = new ManualResetEvent(true);
MSBuildTaskHost (2)
OutOfProcTaskHostNode.cs (2)
155_shutdownEvent = new ManualResetEvent(false); 157_taskCancelledEvent = new ManualResetEvent(false);
PresentationCore (3)
System\IO\Packaging\PackWebResponse.cs (1)
80_responseAvailable = new ManualResetEvent(false);
System\Windows\InterOp\D3DImage.cs (1)
61_canWriteEvent = new ManualResetEvent(true);
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
1397private ManualResetEvent _copyCompletedEvent = new ManualResetEvent(true);
PresentationFramework (1)
System\Windows\Data\XmlDataProvider.cs (1)
418_waitForInlineDoc = new ManualResetEvent(false); // tells serializer to wait until _document is ready
PresentationUI (1)
MS\Internal\Documents\SigningProgress.cs (1)
137_isReady = new ManualResetEvent(false);
ReachFramework (1)
Serialization\RCW\PrintDocumentPackageStatusProvider.cs (1)
32_jobIdAcquiredEvent = new ManualResetEvent(false);
ScenarioTests.Common.Tests (6)
ScenarioTestTypes.cs (6)
1063private ManualResetEvent _waitEvent = new ManualResetEvent(false); 1184LogReceived = new ManualResetEvent(false); 1185ReceiveDataInvoked = new ManualResetEvent(false); 1186ReceiveDataCompleted = new ManualResetEvent(false); 1187ReceiveStreamInvoked = new ManualResetEvent(false); 1188ReceiveStreamCompleted = new ManualResetEvent(false);
System.Data.Odbc (1)
Common\System\Data\ProviderBase\DbConnectionPool.cs (1)
53_errorEvent = new ManualResetEvent(false);
System.Diagnostics.Process (1)
System\Diagnostics\ProcessWaitState.Unix.cs (1)
275_exitedEvent = new ManualResetEvent(initialState: _exited);
System.DirectoryServices.Protocols (2)
System\DirectoryServices\Protocols\ldap\LdapAsyncResult.cs (1)
22_manualResetEvent = new ManualResetEvent(false);
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (1)
42private static readonly ManualResetEvent s_waitHandle = new ManualResetEvent(false);
System.Net.HttpListener (3)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (1)
128waitHandle = new ManualResetEvent(false);
System\Net\Managed\HttpStreamAsyncResult.cs (1)
90_handle ??= new ManualResetEvent(_completed);
System\Net\Managed\ListenerAsyncResult.Managed.cs (1)
222_handle ??= new ManualResetEvent(_completed);
System.Net.Requests (2)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (1)
128waitHandle = new ManualResetEvent(false);
System\Net\TimerThread.cs (1)
90private static readonly ManualResetEvent s_threadShutdownEvent = new ManualResetEvent(false);
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (1)
197protected virtual WaitHandle CreateWaitHandle() => new ManualResetEvent(false);
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
103var mre = new ManualResetEvent(false);
src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (1)
224ManualResetEvent newEventObj = new ManualResetEvent(preInitializeIsSet);
src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (1)
111m_waitHandle ??= new ManualResetEvent(m_currentCount != 0);
src\System\Threading\Thread.CoreCLR.cs (1)
465ManualResetEvent newEvent = new ManualResetEvent(false);
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCacheStore.cs (1)
93_insertBlock = new ManualResetEvent(true);
System.ServiceModel.Federation (1)
System\Runtime\OperationWithTimeoutAsyncResult.cs (1)
90_manualResetEvent = new ManualResetEvent(IsCompleted);
System.ServiceModel.Primitives (6)
Internals\System\Runtime\AsyncResult.cs (1)
52_manualResetEvent = new ManualResetEvent(IsCompleted);
Internals\System\Runtime\InputQueue.cs (2)
1089_waitEvent = new ManualResetEvent(false); 1192_waitEvent = new ManualResetEvent(false);
System\ServiceModel\Channels\ServiceChannel.cs (1)
2254private ManualResetEvent _wait = new ManualResetEvent(false);
System\ServiceModel\Dispatcher\ConcurrencyBehavior.cs (1)
209private ManualResetEvent _wait = new ManualResetEvent(false);
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
736private ManualResetEvent _wait = new ManualResetEvent(false);
System.Transactions.Local (2)
System\Transactions\CommittableTransaction.cs (1)
205ManualResetEvent temp = new ManualResetEvent(
System\Transactions\TransactionTable.cs (1)
47Interlocked.CompareExchange(ref _writerFinishedEvent, new ManualResetEvent(true), null);
System.Windows.Forms (1)
System\Windows\Forms\Control.ThreadMethodEntry.cs (1)
57_resetEvent ??= new ManualResetEvent(false);
UnitTests.Common (1)
MockAsyncResult.cs (1)
15AsyncWaitHandle = new ManualResetEvent(false);
VBCSCompiler.UnitTests (11)
ClientConnectionHandlerTests.cs (2)
150using var buildStartedMre = new ManualResetEvent(initialState: false); 151using var clientClosedMre = new ManualResetEvent(initialState: false);
VBCSCompilerServerTests.cs (9)
92using (var readyMre = new ManualResetEvent(initialState: false)) 93using (var doneMre = new ManualResetEvent(initialState: false)) 142using (var readyMre = new ManualResetEvent(initialState: false)) 143using (var doneMre = new ManualResetEvent(initialState: false)) 192using var startedMre = new ManualResetEvent(initialState: false); 193using var finishedMre = new ManualResetEvent(initialState: false); 231using var startedMre = new ManualResetEvent(initialState: false); 232using var finishedMre = new ManualResetEvent(initialState: false); 328using var readyMre = new ManualResetEvent(initialState: false);
Wasm.Performance.Driver (1)
Program.cs (1)
308var isDone = new ManualResetEvent(false);