8 instantiations of Semaphore
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
231InProcNodeOwningOperatingEnvironment = new Semaphore(1, 1);
NuGet.Credentials (1)
CredentialService.cs (1)
33private static readonly Semaphore ProviderSemaphore = 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.Data.OleDb (2)
System\Data\ProviderBase\DbConnectionPool.cs (2)
237_poolSemaphore = new Semaphore(0, MAX_Q_SIZE); 239_creationSemaphore = new Semaphore(1, 1);
System.Threading.AccessControl (2)
System\Threading\SemaphoreAcl.cs (2)
31return new Semaphore(initialCount, maximumCount, name, out createdNew); 163Semaphore semaphore = new Semaphore(1, 2);
31 references to Semaphore
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
73private static Semaphore InProcNodeOwningOperatingEnvironment;
netstandard (1)
netstandard.cs (1)
2099[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Semaphore))]
NuGet.Credentials (1)
CredentialService.cs (1)
33private static readonly Semaphore ProviderSemaphore = new Semaphore(1, 1);
System (1)
src\runtime\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.Data.OleDb (4)
System\Data\ProviderBase\DbConnectionPool.cs (4)
219private readonly Semaphore _poolSemaphore; 225private readonly Semaphore _creationSemaphore; 283internal Semaphore CreationSemaphore 293internal Semaphore PoolSemaphore
System.Private.CoreLib (8)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.Unix.cs (1)
42out Semaphore? result)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.Unix.cs (1)
23/// - An object that supports the features of <see cref="EventWaitHandle"/>, <see cref="Semaphore"/>, and
System.Threading (1)
src\runtime\artifacts\obj\System.Threading\Release\net11.0\System.Threading.Forwards.cs (1)
22[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Semaphore))]
System.Threading.AccessControl (10)
System\Threading\SemaphoreAcl.cs (8)
15/// <summary>Gets or creates an <see cref="Semaphore" /> instance, allowing a <see cref="SemaphoreSecurity " /> instance to be optionally specified to set it during the event creation.</summary> 27public static unsafe Semaphore Create(int initialCount, int maximumCount, string? name, out bool createdNew, SemaphoreSecurity? semaphoreSecurity) 95public static Semaphore OpenExisting(string name, SemaphoreRights rights) 97switch (OpenExistingWorker(name, rights, out Semaphore? result)) 126public static bool TryOpenExisting(string name, SemaphoreRights rights, [NotNullWhen(returnValue: true)] out Semaphore? result) => 129private static OpenExistingResult OpenExistingWorker(string name, SemaphoreRights rights, out Semaphore? result) 158private static Semaphore CreateAndReplaceHandle(SafeWaitHandle replacementHandle) 163Semaphore semaphore = new Semaphore(1, 2);
System\Threading\ThreadingAclExtensions.cs (2)
38public static SemaphoreSecurity GetAccessControl(this Semaphore semaphore) 43public static void SetAccessControl(this Semaphore semaphore, SemaphoreSecurity semaphoreSecurity)