7 instantiations of Semaphore
Microsoft.AspNetCore.Components.Tests (3)
RendererTest.cs (3)
2378var semaphore = new Semaphore(0, 1); 2423var semaphore = new Semaphore(0, 1); 2502var semaphore = new Semaphore(0, 1);
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
238InProcNodeOwningOperatingEnvironment = new Semaphore(1, 1);
System.Data.Odbc (2)
Common\System\Data\ProviderBase\DbConnectionPool.cs (2)
52_poolSemaphore = new Semaphore(0, MAX_Q_SIZE); 54_creationSemaphore = new Semaphore(1, 1);
System.Private.CoreLib (1)
src\System\Threading\LowLevelLifoSemaphore.Unix.cs (1)
21_semaphore = new Semaphore(0, maximumSignalCount);
24 references to Semaphore
Microsoft.AspNetCore.Components.Tests (3)
RendererTest.cs (3)
2378var semaphore = new Semaphore(0, 1); 2423var semaphore = new Semaphore(0, 1); 2502var semaphore = new Semaphore(0, 1);
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
42private static Semaphore InProcNodeOwningOperatingEnvironment;
netstandard (1)
netstandard.cs (1)
2099[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Semaphore))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
915[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Semaphore))]
System.Data.Odbc (4)
Common\System\Data\ProviderBase\DbConnectionPool.cs (4)
39private readonly Semaphore _poolSemaphore; 45private readonly Semaphore _creationSemaphore; 61internal Semaphore CreationSemaphore 71internal Semaphore PoolSemaphore
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.cs (6)
99public static Semaphore OpenExisting(string name, NamedWaitHandleOptions options) 101OpenExistingResult openExistingResult = OpenExistingWorker(name, new(options), out Semaphore? result); 112public static Semaphore OpenExisting(string name) 114OpenExistingResult openExistingResult = OpenExistingWorker(name, options: default, out Semaphore? result); 157public static bool TryOpenExisting(string name, NamedWaitHandleOptions options, [NotNullWhen(true)] out Semaphore? result) => 161public static bool TryOpenExisting(string name, [NotNullWhen(true)] out Semaphore? result) =>
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.Windows.cs (1)
136out Semaphore? result)
src\System\Threading\LowLevelLifoSemaphore.Unix.cs (1)
16private Semaphore? _semaphore;
System.Threading (1)
artifacts\obj\System.Threading\Debug\net10.0\System.Threading.Forwards.cs (1)
22[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Semaphore))]
System.Threading.AccessControl (5)
artifacts\obj\System.Threading.AccessControl\Debug\net10.0\System.Threading.AccessControl.Extensions.notsupported.cs (5)
23public static System.Threading.Semaphore Create(int initialCount, int maximumCount, string? name, out bool createdNew, System.Security.AccessControl.SemaphoreSecurity? semaphoreSecurity) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 24public static System.Threading.Semaphore OpenExisting(string name, System.Security.AccessControl.SemaphoreRights rights) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 25public static bool TryOpenExisting(string name, System.Security.AccessControl.SemaphoreRights rights, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Threading.Semaphore? result) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 31public static System.Security.AccessControl.SemaphoreSecurity GetAccessControl(this System.Threading.Semaphore semaphore) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 34public static void SetAccessControl(this System.Threading.Semaphore semaphore, System.Security.AccessControl.SemaphoreSecurity semaphoreSecurity) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); }