15 writes to SafeWaitHandle
System.Diagnostics.Process (1)
System\Diagnostics\ProcessWaitHandle.Unix.cs (1)
23this.SafeWaitHandle = null;
System.DirectoryServices.Protocols (2)
System\DirectoryServices\Protocols\ldap\LdapAsyncResult.cs (2)
50SafeWaitHandle = handle; 53~LdapAsyncWaitHandle() => SafeWaitHandle = null;
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.Unix.cs (2)
16SafeWaitHandle = WaitSubsystem.NewEvent(initialState, mode); 34SafeWaitHandle = WaitSubsystem.NewEvent(initialState, mode);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Mutex.cs (1)
95SafeWaitHandle = handle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Mutex.Unix.cs (3)
13private void CreateMutexCore(bool initiallyOwned) => SafeWaitHandle = WaitSubsystem.NewMutex(initiallyOwned); 30SafeWaitHandle = safeWaitHandle; 34SafeWaitHandle = WaitSubsystem.NewMutex(initiallyOwned);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.Unix.cs (2)
16SafeWaitHandle = WaitSubsystem.NewSemaphore(initialCount, maximumCount); 34SafeWaitHandle = WaitSubsystem.NewSemaphore(initialCount, maximumCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandleExtensions.cs (1)
31waitHandle.SafeWaitHandle = value;
System.Threading.AccessControl (3)
System\Threading\EventWaitHandleAcl.cs (1)
161eventWaitHandle.SafeWaitHandle = replacementHandle;
System\Threading\MutexAcl.cs (1)
152mutex.SafeWaitHandle = replacementHandle;
System\Threading\SemaphoreAcl.cs (1)
166semaphore.SafeWaitHandle = replacementHandle;
28 references to SafeWaitHandle
Microsoft.Build (1)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
894if (!_taskExecutionIdle.SafeWaitHandle.IsClosed)
PresentationCore (3)
MS\Internal\IO\Packaging\NetStream.cs (1)
581_readEventHandles[(int)ReadEvent.ByteRangeReadEvent].SafeWaitHandle,
System\Windows\InterOp\D3DImage.cs (1)
693_canWriteEvent.SafeWaitHandle,
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
1295_copyCompletedEvent.SafeWaitHandle,
System.Data.OleDb (3)
System\Data\ProviderBase\DbConnectionPool.cs (3)
245_poolHandle = _poolSemaphore.SafeWaitHandle; 246_errorHandle = _errorEvent.SafeWaitHandle; 247_creationHandle = _creationSemaphore.SafeWaitHandle;
System.Diagnostics.EventLog (3)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
87int result = Interop.Kernel32.WaitForSingleObject(mutexIn.SafeWaitHandle, 500);
System\Diagnostics\EventLogInternal.cs (1)
426bool success = Interop.Advapi32.NotifyChangeEventLog(info.handleOwner.ReadHandle, info.waitHandle.SafeWaitHandle);
System\Diagnostics\Reader\EventLogWatcher.cs (1)
188_subscriptionWaitHandle.SafeWaitHandle,
System.Diagnostics.PerformanceCounter (1)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
87int result = Interop.Kernel32.WaitForSingleObject(mutexIn.SafeWaitHandle, 500);
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\ldap\LdapAsyncResult.cs (1)
28WaitHandle IAsyncResult.AsyncWaitHandle => field ??= new LdapAsyncWaitHandle(_manualResetEvent.SafeWaitHandle);
System.Private.CoreLib (11)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.Unix.cs (1)
93SafeWaitHandle waitHandle = SafeWaitHandle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
745return WaitEvent.SafeWaitHandle.DangerousGetHandle();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Mutex.Unix.cs (1)
72SafeWaitHandle waitHandle = SafeWaitHandle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (1)
182_waitHandles[0] = _changeHandlesEvent.SafeWaitHandle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\RegisteredWaitHandle.Portable.cs (2)
65_waitHandle = waitHandle.SafeWaitHandle; 108UserUnregisterWaitHandle = waitObject?.SafeWaitHandle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.Unix.cs (1)
51SafeWaitHandle waitHandle = SafeWaitHandle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (1)
697EventWaitHandle.Set(wh.SafeWaitHandle);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
234/// Obtains all of the corresponding safe wait handles and adds a ref to each. Since the <see cref="SafeWaitHandle"/>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandleExtensions.cs (1)
19return waitHandle.SafeWaitHandle;
System\Threading\Thread.NativeAot.Unix.cs (1)
17private SafeWaitHandle GetJoinHandle() => _stopped.SafeWaitHandle;
System.Threading.AccessControl (3)
System\Threading\EventWaitHandleAcl.cs (1)
160SafeWaitHandle old = eventWaitHandle.SafeWaitHandle;
System\Threading\MutexAcl.cs (1)
151SafeWaitHandle old = mutex.SafeWaitHandle;
System\Threading\SemaphoreAcl.cs (1)
165SafeWaitHandle old = semaphore.SafeWaitHandle;
UIAutomationClient (1)
MS\Internal\Automation\QueueProcessor.cs (1)
114SafeWaitHandle handle = _ev.SafeWaitHandle;
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\QueueProcessor.cs (1)
94SafeWaitHandle handle = _ev.SafeWaitHandle;