15 references to MaxWaitHandles
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (4)
151private readonly RegisteredWaitHandle[] _registeredWaits = new RegisteredWaitHandle[WaitHandle.MaxWaitHandles - 1]; 158private readonly SafeWaitHandle[] _waitHandles = new SafeWaitHandle[WaitHandle.MaxWaitHandles]; 167private readonly RegisteredWaitHandle?[] _pendingRemoves = new RegisteredWaitHandle[WaitHandle.MaxWaitHandles - 1]; 398if (_numUserWaits == WaitHandle.MaxWaitHandles - 1)
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (4)
222Math.Min(MaxWaitHandles, 2 * currentLength))]; 242Debug.Assert(waitHandles.Length <= MaxWaitHandles); 302if (waitHandles.Length > MaxWaitHandles) 367Debug.Assert(safeWaitHandles.Length <= MaxWaitHandles);
src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.ThreadWaitInfo.Unix.cs (3)
148Math.Min(WaitHandle.MaxWaitHandles, 2 * currentLength))]; 162Math.Min(WaitHandle.MaxWaitHandles, 2 * currentLength))]; 635Debug.Assert(waitedObjectIndex < WaitHandle.MaxWaitHandles);
src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.Unix.cs (2)
98/// <see cref="WaitHandle.MaxWaitHandles"/>, arrays necessary for holding information about a multi-wait, and list nodes 379Debug.Assert(waitHandles.Length <= WaitHandle.MaxWaitHandles);
src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.WaitableObject.Unix.cs (2)
516Debug.Assert(signaledWaitedObjectIndex <= WaitHandle.MaxWaitHandles); 571Debug.Assert(signaledWaitedObjectIndex <= WaitHandle.MaxWaitHandles);