5 instantiations of NonReentrantLock
Microsoft.CodeAnalysis.Workspaces (5)
Shared\TestHooks\AsynchronousOperationListener.cs (1)
18private readonly NonReentrantLock _gate = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CancellableLazy`1.cs (1)
19_gate = new NonReentrantLock();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
16private readonly NonReentrantLock _guard = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
67public static readonly Func<NonReentrantLock> Factory = () => new NonReentrantLock(useThisInstanceForSynchronization: true);
Workspace\Workspace.cs (1)
50private readonly NonReentrantLock _stateLock = new(useThisInstanceForSynchronization: true);
12 references to NonReentrantLock
Microsoft.CodeAnalysis.Workspaces (12)
Shared\TestHooks\AsynchronousOperationListener.cs (1)
18private readonly NonReentrantLock _gate = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CancellableLazy`1.cs (2)
13private NonReentrantLock? _gate; 50var gate = _gate;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
16private readonly NonReentrantLock _guard = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (7)
22/// The <see cref="NonReentrantLock"/> provides a lightweight mutual exclusion class that doesn't 34/// All public members of <see cref="NonReentrantLock"/> are thread-safe and may be used concurrently 67public static readonly Func<NonReentrantLock> Factory = () => new NonReentrantLock(useThisInstanceForSynchronization: true); 70/// Blocks the current thread until it can enter the <see cref="NonReentrantLock"/>, while observing a 224/// <param name="obj">The syncLock that protects a <see cref="NonReentrantLock"/> instance.</param> 242/// Since we want to avoid boxing the return from <see cref="NonReentrantLock.DisposableWait"/>, this type must be public. 244public readonly struct SemaphoreDisposer(NonReentrantLock semaphore) : IDisposable
Workspace\Workspace.cs (1)
50private readonly NonReentrantLock _stateLock = new(useThisInstanceForSynchronization: true);