7 instantiations of Semaphore
Microsoft.AspNetCore.Components.Tests (3)
RendererTest.cs (3)
2378
var semaphore = new
Semaphore
(0, 1);
2423
var semaphore = new
Semaphore
(0, 1);
2502
var semaphore = new
Semaphore
(0, 1);
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
238
InProcNodeOwningOperatingEnvironment = 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)
2378
var
semaphore = new Semaphore(0, 1);
2423
var
semaphore = new Semaphore(0, 1);
2502
var
semaphore = new Semaphore(0, 1);
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
42
private 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)
39
private readonly
Semaphore
_poolSemaphore;
45
private readonly
Semaphore
_creationSemaphore;
61
internal
Semaphore
CreationSemaphore
71
internal
Semaphore
PoolSemaphore
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.cs (6)
99
public static
Semaphore
OpenExisting(string name, NamedWaitHandleOptions options)
101
OpenExistingResult openExistingResult = OpenExistingWorker(name, new(options), out
Semaphore
? result);
112
public static
Semaphore
OpenExisting(string name)
114
OpenExistingResult openExistingResult = OpenExistingWorker(name, options: default, out
Semaphore
? result);
157
public static bool TryOpenExisting(string name, NamedWaitHandleOptions options, [NotNullWhen(true)] out
Semaphore
? result) =>
161
public static bool TryOpenExisting(string name, [NotNullWhen(true)] out
Semaphore
? result) =>
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.Windows.cs (1)
136
out
Semaphore
? result)
src\System\Threading\LowLevelLifoSemaphore.Unix.cs (1)
16
private
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)
23
public 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); }
24
public static System.Threading.
Semaphore
OpenExisting(string name, System.Security.AccessControl.SemaphoreRights rights) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); }
25
public 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); }
31
public static System.Security.AccessControl.SemaphoreSecurity GetAccessControl(this System.Threading.
Semaphore
semaphore) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); }
34
public static void SetAccessControl(this System.Threading.
Semaphore
semaphore, System.Security.AccessControl.SemaphoreSecurity semaphoreSecurity) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); }