7 types derived from WaitHandle
mscorlib (2)
system\threading\eventwaithandle.cs (1)
47public class EventWaitHandle : WaitHandle
system\threading\mutex.cs (1)
39public sealed class Mutex : WaitHandle
System (3)
net\System\Net\_Semaphore.cs (1)
19internal sealed class Semaphore : WaitHandle
services\monitoring\system\diagnosticts\processwaithandle.cs (1)
9internal class ProcessWaitHandle : WaitHandle {
sys\system\threading\semaphore.cs (1)
28public sealed class Semaphore: WaitHandle
System.ServiceModel.Internals (1)
System\Runtime\IOThreadTimer.cs (1)
601class WaitableTimer : WaitHandle
System.Web (1)
Util\StopListeningWaitHandle.cs (1)
18internal sealed class StopListeningWaitHandle : WaitHandle {
143 references to WaitHandle
mscorlib (64)
system\iasyncresult.cs (1)
23WaitHandle AsyncWaitHandle { get; }
system\io\filestream.cs (1)
194public WaitHandle AsyncWaitHandle
system\io\stream.cs (3)
291protected virtual WaitHandle CreateWaitHandle() 293Contract.Ensures(Contract.Result<WaitHandle>() != null); 1023public WaitHandle AsyncWaitHandle {
system\runtime\remoting\asyncresult.cs (1)
93public virtual WaitHandle AsyncWaitHandle
system\threading\abandonedmutexexception.cs (4)
43public AbandonedMutexException(int location, WaitHandle handle) 49public AbandonedMutexException(String message,int location, WaitHandle handle) 55public AbandonedMutexException(String message, Exception inner,int location, WaitHandle handle ) 61private void SetupException(int location, WaitHandle handle)
system\threading\CancellationToken.cs (1)
120public WaitHandle WaitHandle
system\threading\CancellationTokenSource.cs (1)
177internal WaitHandle WaitHandle
system\threading\CountdownEvent.cs (1)
133public WaitHandle WaitHandle
system\threading\ManualResetEventSlim.cs (1)
104public WaitHandle WaitHandle
system\threading\SemaphoreSlim.cs (1)
128public WaitHandle AvailableWaitHandle
system\threading\Tasks\Task.cs (1)
1591WaitHandle IAsyncResult.AsyncWaitHandle
system\threading\Tasks\TaskToApm.cs (1)
189WaitHandle IAsyncResult.AsyncWaitHandle { get { return ((IAsyncResult)this.Task).AsyncWaitHandle; } }
system\threading\threadpool.cs (15)
941private WaitHandle m_internalWaitObject; 967internal void SetWaitObject(WaitHandle waitObject) 989WaitHandle waitObject // object to be notified when all callbacks to delegates have completed 1127internal void SetWaitObject(WaitHandle waitObject) 1137WaitHandle waitObject // object to be notified when all callbacks to delegates have completed 1409WaitHandle waitObject, 1424WaitHandle waitObject, 1438WaitHandle waitObject, 1482WaitHandle waitObject, 1499WaitHandle waitObject, 1516WaitHandle waitObject, 1533WaitHandle waitObject, 1550WaitHandle waitObject, 1569WaitHandle waitObject, 1875WaitHandle waitHandle,
system\threading\timer.cs (4)
534volatile WaitHandle m_notifyWhenNoCallbacksRunning; 613public bool Close(WaitHandle toSignal) 822public bool Close(WaitHandle notifyObject) 1018public bool Dispose(WaitHandle notifyObject)
system\threading\waithandle.cs (24)
293private static extern int WaitMultiple(WaitHandle[] waitHandles, int millisecondsTimeout, bool exitContext, bool WaitAll); 296public static bool WaitAll(WaitHandle[] waitHandles, int millisecondsTimeout, bool exitContext) 328WaitHandle[] internalWaitHandles = new WaitHandle[waitHandles.Length]; 331WaitHandle waitHandle = waitHandles[i]; 373WaitHandle[] waitHandles, 389public static bool WaitAll(WaitHandle[] waitHandles) 394public static bool WaitAll(WaitHandle[] waitHandles, int millisecondsTimeout) 399public static bool WaitAll(WaitHandle[] waitHandles, TimeSpan timeout) 416public static int WaitAny(WaitHandle[] waitHandles, int millisecondsTimeout, bool exitContext) 435WaitHandle[] internalWaitHandles = new WaitHandle[waitHandles.Length]; 438WaitHandle waitHandle = waitHandles[i]; 478WaitHandle[] waitHandles, 490public static int WaitAny(WaitHandle[] waitHandles, TimeSpan timeout) 500public static int WaitAny(WaitHandle[] waitHandles) 506public static int WaitAny(WaitHandle[] waitHandles, int millisecondsTimeout) 524WaitHandle toSignal, 525WaitHandle toWaitOn) 531WaitHandle toSignal, 532WaitHandle toWaitOn, 547WaitHandle toSignal, 548WaitHandle toWaitOn, 602private static void ThrowAbandonedMutexException(int location, WaitHandle handle)
system\threading\waithandleExtensions.cs (4)
18/// <param name="waitHandle">The <see cref="System.Threading.WaitHandle"/> to operate on.</param> 21public static SafeWaitHandle GetSafeWaitHandle(this WaitHandle waitHandle) 34/// <param name="waitHandle">The <see cref="System.Threading.WaitHandle"/> to operate on.</param> 37public static void SetSafeWaitHandle(this WaitHandle waitHandle, SafeWaitHandle value)
PresentationCore (1)
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (1)
1159int index = WaitHandle.WaitAny(_readEventHandles);
PresentationFramework (1)
src\Framework\System\Windows\Documents\PageContentAsyncResult.cs (1)
104public WaitHandle AsyncWaitHandle
System (37)
net\System\Net\_LazyAsyncResult.cs (1)
142public WaitHandle AsyncWaitHandle
net\System\Net\_SafeNetHandles.cs (1)
2808internal WaitHandle GetEventHandle(){
net\System\Net\_TimerThread.cs (5)
179private static WaitHandle[] s_ThreadEvents; 184s_ThreadEvents = new WaitHandle[] { s_ThreadShutdownEvent, s_ThreadReadyEvent }; 704int waitResult = WaitHandle.WaitAny(s_ThreadEvents, waitDuration, false); 713GlobalLog.Print("TimerThread#" + Thread.CurrentThread.ManagedThreadId.ToString() + "::ThreadProc() Awoke, cause: " + (waitResult == WaitHandle.WaitTimeout ? "Timeout" : "Prod")); 716if (waitResult == WaitHandle.WaitTimeout && !haveNextTick) {
net\System\Net\connectionpool.cs (9)
59private WaitHandle[] m_WaitHandles; 125m_WaitHandles = new WaitHandle[3]; 188WaitHandle [] localWaitHandles = m_WaitHandles; 192int result = WaitHandle.WaitAny(localWaitHandles, asyncState.CreationTimeout, false); 497private PooledStream Get(object owningObject, int result, ref bool continueLoop, ref WaitHandle [] waitHandles) { 551waitHandles = new WaitHandle[2]; 610WaitHandle[] localWaitHandles = m_WaitHandles; 613result = WaitHandle.WaitAny(localWaitHandles, 0, false); 625result = WaitHandle.WaitAny(localWaitHandles, creationTimeout, false);
net\System\Net\HttpListener.cs (1)
2696public WaitHandle AsyncWaitHandle {
net\System\Net\NetworkInformation\NetworkAddressChange.cs (2)
169static private WaitHandle s_ipv4WaitHandle = null; 170static private WaitHandle s_ipv6WaitHandle = null;
services\io\system\io\FileSystemWatcher.cs (1)
97public WaitHandle AsyncWaitHandle { get { throw new NotImplementedException(); } }
services\monitoring\system\diagnosticts\EventLogInternal.cs (1)
1738public WaitHandle waitHandle;
services\monitoring\system\diagnosticts\Process.cs (1)
97WaitHandle waitHandle;
sys\system\collections\concurrent\BlockingCollection.cs (11)
1018List<WaitHandle> handles = GetHandles(collections, externalCancellationToken, true, out collatedCancellationTokens); 1034index = WaitHandle.WaitAny(handles.ToArray(), timeout, false); 1047Debug.Assert((index == WaitHandle.WaitTimeout) || (index >= 0 && index < handles.Count)); 1049if (index == WaitHandle.WaitTimeout) //case#2 1097private static List<WaitHandle> GetHandles(BlockingCollection<T>[] collections, CancellationToken externalCancellationToken, bool isAddOperation, out CancellationToken[] cancellationTokens) 1101List<WaitHandle> handlesList = new List<WaitHandle>(collections.Length + 1); // + 1 for the external token handle to be added 1428List<WaitHandle> handles = GetHandles(collections, externalCancellationToken, false, out collatedCancellationTokens); 1441int index = WaitHandle.WaitAny(handles.ToArray(), timeout, false); 1449Debug.Assert((index == WaitHandle.WaitTimeout) || (index >= 0 && index < handles.Count)); 1450if (index == WaitHandle.WaitTimeout) //case#2
sys\System\IO\compression\DeflateStreamAsyncResult.cs (1)
48public WaitHandle AsyncWaitHandle {
sys\system\io\ports\SerialStream.cs (3)
969WaitHandle wh = afsar._waitHandle; 1038WaitHandle wh = afsar._waitHandle; 1958public WaitHandle AsyncWaitHandle
System.Core (5)
System\IO\Pipes\Pipe.cs (2)
742WaitHandle wh = afsar._waitHandle; 1442public WaitHandle AsyncWaitHandle {
System\IO\Pipes\PipeStream.cs (3)
386WaitHandle wh = afsar._waitHandle; 588WaitHandle wh = afsar._waitHandle; 1303public WaitHandle AsyncWaitHandle {
System.Data.Services.Client (1)
System\Data\Services\Client\BaseAsyncResult.cs (1)
114public System.Threading.WaitHandle AsyncWaitHandle
System.IdentityModel (2)
System\IdentityModel\AsyncResult.cs (1)
228public virtual WaitHandle AsyncWaitHandle
System\IdentityModel\Selectors\SecurityTokenProvider.cs (1)
199public WaitHandle AsyncWaitHandle
System.IO.Log (2)
System\IO\Log\FileRecordSequenceCompletedAsyncResult.cs (1)
66public WaitHandle AsyncWaitHandle
System\IO\Log\OverlappedAsyncResult.cs (1)
69public WaitHandle AsyncWaitHandle
System.Messaging (1)
System\Messaging\MessageQueue.cs (1)
3736public WaitHandle AsyncWaitHandle
System.Runtime.Remoting (3)
channels\core\basicasyncresult.cs (2)
47public WaitHandle AsyncWaitHandle 66return (WaitHandle)_manualResetEvent;
channels\ipc\ipcport.cs (1)
345public WaitHandle AsyncWaitHandle { get { throw new NotSupportedException();} }
System.ServiceModel (8)
System\ServiceModel\Channels\BufferedOutputAsyncStream.cs (1)
996public WaitHandle AsyncWaitHandle
System\ServiceModel\Channels\ConnectAlgorithms.cs (4)
57List<WaitHandle> handles = new List<WaitHandle>(); 75int index = WaitHandle.WaitAny(handles.ToArray(), config.ConnectTimeout, false); 175else if (index != WaitHandle.WaitTimeout)
System\ServiceModel\Channels\OverlappedContext.cs (1)
501WaitHandle IAsyncResult.AsyncWaitHandle
System\ServiceModel\Channels\PnrpPeerResolver.cs (2)
633List<WaitHandle> handles = new List<WaitHandle>();
System.ServiceModel.Internals (4)
System\Runtime\AsyncResult.cs (2)
58public WaitHandle AsyncWaitHandle 387WaitHandle waitHandle = null;
System\Runtime\IOThreadTimer.cs (1)
265WaitHandle.WaitAny(this.waitableTimers);
System\Runtime\TimeoutHelper.cs (1)
174public static bool WaitOne(WaitHandle waitHandle, TimeSpan timeout)
System.Transactions (1)
System\Transactions\CommittableTransaction.cs (1)
257WaitHandle IAsyncResult.AsyncWaitHandle
System.Web (6)
Hosting\AsyncResultBase.cs (1)
101public WaitHandle AsyncWaitHandle { get { return _mre.WaitHandle; } } // wait not supported
HttpAsyncResult.cs (1)
139public WaitHandle AsyncWaitHandle { get { return null;}} // wait not supported
httpserverutility.cs (1)
548WaitHandle h = ar.AsyncWaitHandle;
TaskWrapperAsyncResult.cs (1)
32public WaitHandle AsyncWaitHandle {
UI\LegacyPageAsyncTaskManager.cs (1)
103WaitHandle waitHandle = task.AsyncResult.AsyncWaitHandle;
Util\AspCompat.cs (1)
378WaitHandle h = ar.AsyncWaitHandle;
System.Web.Services (3)
System\Web\Services\Protocols\ClientProtocol.cs (2)
570public WaitHandle AsyncWaitHandle { 581return (WaitHandle)manualResetEvent;
System\Web\Services\Protocols\WebServiceHandler.cs (1)
443public WaitHandle AsyncWaitHandle { get { return null; } }
System.Windows.Forms (3)
winforms\Managed\System\WinForms\Control.cs (3)
4400private void WaitForWaitHandle(WaitHandle waitHandle) { 20083public WaitHandle AsyncWaitHandle { 20099return(WaitHandle)this.resetEvent;
System.Workflow.Runtime (1)
System\Activities\Statements\Interop.cs (1)
1888public WaitHandle AsyncWaitHandle