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