10 writes to SafeWaitHandle
mscorlib (2)
system\io\filestream.cs (1)
211mre.SafeWaitHandle = new SafeWaitHandle(_overlapped->EventHandle, true);
system\threading\waithandleExtensions.cs (1)
44waitHandle.SafeWaitHandle = value;
System (4)
services\monitoring\system\diagnosticts\processwaithandle.cs (1)
28this.SafeWaitHandle = waitHandle;
sys\system\threading\semaphore.cs (3)
80this.SafeWaitHandle = myHandle; 148this.SafeWaitHandle = myHandle; 159this.SafeWaitHandle = handle;
System.Core (2)
System\IO\Pipes\Pipe.cs (1)
1448mre.SafeWaitHandle = new SafeWaitHandle(_overlapped->EventHandle, true);
System\IO\Pipes\PipeStream.cs (1)
1309mre.SafeWaitHandle = new SafeWaitHandle(_overlapped->EventHandle, true);
System.ServiceModel.Internals (1)
System\Runtime\IOThreadTimer.cs (1)
611this.SafeWaitHandle = TimerHelper.CreateWaitableTimer();
System.Web (1)
Util\StopListeningWaitHandle.cs (1)
43this.SafeWaitHandle = safeWaitHandle;
63 references to SafeWaitHandle
mscorlib (7)
system\io\filestream.cs (1)
357Contract.Assert(!wh.SafeWaitHandle.IsClosed, "ManualResetEvent already closed!");
system\threading\threadpool.cs (4)
979m_internalWaitObject.SafeWaitHandle.DangerousAddRef(ref bReleaseNeeded); 1012result = UnregisterWaitNative(GetHandle(), waitObject == null ? null : waitObject.SafeWaitHandle); 1017m_internalWaitObject.SafeWaitHandle.DangerousRelease(); 1083m_internalWaitObject.SafeWaitHandle.DangerousRelease();
system\threading\timer.cs (1)
690Win32Native.SetEvent(m_notifyWhenNoCallbacksRunning.SafeWaitHandle);
system\threading\waithandleExtensions.cs (1)
28return waitHandle.SafeWaitHandle;
PresentationCore (3)
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (1)
645_readEventHandles[(int)ReadEvent.ByteRangeReadEvent].SafeWaitHandle,
Core\CSharp\System\Windows\Interop\D3DImage.cs (1)
775_canWriteEvent.SafeWaitHandle,
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (1)
1528_copyCompletedEvent.SafeWaitHandle,
System (19)
net\System\Net\_AutoWebProxyScriptEngine.cs (1)
452errorCode = key.RegNotifyChangeKeyValue(true, UnsafeNclNativeMethods.RegistryHelper.REG_NOTIFY_CHANGE_LAST_SET, changeEvent.SafeWaitHandle, true);
net\System\Net\_SafeNetHandles.cs (2)
2771SafeWaitHandle handle = socketAndEventHandle.waitHandle.SafeWaitHandle; 2801waitHandle.SafeWaitHandle.DangerousRelease();
net\System\Net\Internal.cs (2)
593errorCode = (SocketError)UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(ipv4Socket, ipv4Socket.GetEventHandle().SafeWaitHandle, AsyncEventBits.FdAddressListChange); 616errorCode = (SocketError)UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(ipv6Socket, ipv6Socket.GetEventHandle().SafeWaitHandle, AsyncEventBits.FdAddressListChange);
net\System\Net\NetworkInformation\NetworkAddressChange.cs (2)
308errorCode = (SocketError)UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(s_ipv4Socket, s_ipv4Socket.GetEventHandle().SafeWaitHandle, AsyncEventBits.FdAddressListChange); 336errorCode = (SocketError)UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(s_ipv6Socket, s_ipv6Socket.GetEventHandle().SafeWaitHandle, AsyncEventBits.FdAddressListChange);
net\System\Net\NetworkInformation\ping.cs (2)
675error = (int)UnsafeNetInfoNativeMethods.IcmpSendEcho2 (handlePingV4, pingEvent.SafeWaitHandle, IntPtr.Zero, IntPtr.Zero, (uint)address.m_Address, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout); 686error = (int)UnsafeNetInfoNativeMethods.Icmp6SendEcho2 (handlePingV6, pingEvent.SafeWaitHandle, IntPtr.Zero, IntPtr.Zero, sourceAddr, remoteAddr.m_Buffer, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout);
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (1)
179Marshal.WriteIntPtr( m_UnmanagedBlob.DangerousGetHandle(), Win32.OverlappedhEventOffset, m_OverlappedEvent.SafeWaitHandle.DangerousGetHandle() );
net\System\Net\Sockets\Socket.cs (2)
3024m_AsyncEvent.SafeWaitHandle, 7556errorCode = UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(m_Handle, m_AsyncEvent.SafeWaitHandle, blockEventBits);
net\System\Net\UnsafeNativeMethods.cs (1)
238uint statusCode = RasConnectionNotification((IntPtr)(-1), m_RasEvent.SafeWaitHandle, RASCN_Connection | RASCN_Disconnection);
services\monitoring\system\diagnosticts\EventLogInternal.cs (1)
568bool success = UnsafeNativeMethods.NotifyChangeEventLog(info.handleOwner.ReadHandle, info.waitHandle.SafeWaitHandle);
services\monitoring\system\diagnosticts\SharedUtils.cs (1)
176int result = WaitForSingleObjectDontCallThis(mutexIn.SafeWaitHandle, 500);
sys\system\io\ports\SerialStream.cs (1)
1732Overlapped overlapped = new Overlapped(0, 0, waitCommEventWaitHandle.SafeWaitHandle.DangerousGetHandle(), asyncResult);
sys\system\threading\semaphore.cs (3)
321if (!SafeNativeMethods.ReleaseSemaphore(SafeWaitHandle, releaseCount, out previousCount)) 333return new SemaphoreSecurity(SafeWaitHandle, AccessControlSections.Access | AccessControlSections.Owner | AccessControlSections.Group); 342semaphoreSecurity.Persist(SafeWaitHandle);
System.Core (3)
System\Diagnostics\Eventing\Reader\EventLogWatcher.cs (1)
180this.subscriptionWaitHandle.SafeWaitHandle,
System\IO\Pipes\Pipe.cs (1)
911Debug.Assert(!wh.SafeWaitHandle.IsClosed, "ManualResetEvent already closed!");
System\IO\Pipes\PipeStream.cs (1)
1262Debug.Assert(!wh.SafeWaitHandle.IsClosed, "ManualResetEvent already closed!");
System.Data (3)
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (3)
339_poolHandle = _poolSemaphore.SafeWaitHandle; 340_errorHandle = _errorEvent.SafeWaitHandle; 341_creationHandle = _creationSemaphore.SafeWaitHandle;
System.Net (23)
net\PeerToPeer\Collaboration\CollaborationHelperFunctions.cs (3)
458presenceChangedEvent.SafeWaitHandle, 516appChangedEvent.SafeWaitHandle, 575objChangedEvent.SafeWaitHandle,
net\PeerToPeer\Collaboration\ContactManager.cs (5)
262m_subLstChangedEvent.SafeWaitHandle, 463m_nameChangedEvent.SafeWaitHandle, 669m_presenceChangedEvent.SafeWaitHandle, 883m_appChangedEvent.SafeWaitHandle, 1097m_objChangedEvent.SafeWaitHandle,
net\PeerToPeer\Collaboration\MyContact.cs (3)
97PresenceChangedEvent.SafeWaitHandle, 263AppChangedEvent.SafeWaitHandle, 427ObjChangedEvent.SafeWaitHandle,
net\PeerToPeer\Collaboration\Peer.cs (2)
1191m_InviteEvent.SafeWaitHandle, 1200m_InviteEvent.SafeWaitHandle,
net\PeerToPeer\Collaboration\PeerApplication.cs (1)
277m_appChangedEvent.SafeWaitHandle,
net\PeerToPeer\Collaboration\PeerCollaboration.cs (1)
1059s_nameChangedEvent.SafeWaitHandle,
net\PeerToPeer\Collaboration\PeerContact.cs (3)
1252m_appChangedEvent.SafeWaitHandle, 1502m_objChangedEvent.SafeWaitHandle, 1756m_presenceChangedEvent.SafeWaitHandle,
net\PeerToPeer\Collaboration\PeerEndPoint.cs (1)
236m_nameChangedEvent.SafeWaitHandle,
net\PeerToPeer\Collaboration\PeerNearMe.cs (2)
255refreshedEPDataEvent.SafeWaitHandle, 575s_peerNearMeChangedEvent.SafeWaitHandle,
net\PeerToPeer\Collaboration\PeerObject.cs (1)
226m_objChangedEvent.SafeWaitHandle,
net\PeerToPeer\PeerNameResolver.cs (1)
220m_EndPointInfoAvailableEvent.SafeWaitHandle,
System.ServiceModel (1)
System\ServiceModel\Channels\OverlappedContext.cs (1)
365this.eventHandle = (IntPtr)(1 | (long)this.completionEvent.SafeWaitHandle.DangerousGetHandle());
System.ServiceModel.Internals (1)
System\Runtime\IOThreadTimer.cs (1)
624this.dueTime = TimerHelper.Set(this.SafeWaitHandle, dueTime);
System.Transactions (1)
System\Transactions\Oletx\OletxTransactionManager.cs (1)
528OletxTransactionManager.ShimWaitHandle.SafeWaitHandle,
UIAutomationClient (1)
MS\Internal\Automation\QueueProcessor.cs (1)
129SafeWaitHandle handle = _ev.SafeWaitHandle;
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\QueueProcessor.cs (1)
102SafeWaitHandle handle = _ev.SafeWaitHandle;