4 instantiations of NonReentrantLock
Microsoft.CodeAnalysis.CodeStyle (4)
AsyncLazy`1.cs (1)
66
private static readonly NonReentrantLock s_gate =
new
(useThisInstanceForSynchronization: true);
CancellableLazy`1.cs (1)
19
_gate = new
NonReentrantLock
();
EventMap.cs (1)
15
private readonly NonReentrantLock _guard =
new
();
NonReentrantLock.cs (1)
66
public static readonly Func<NonReentrantLock> Factory = () => new
NonReentrantLock
(useThisInstanceForSynchronization: true);
12 references to NonReentrantLock
Microsoft.CodeAnalysis.CodeStyle (12)
AsyncLazy`1.cs (1)
66
private static readonly
NonReentrantLock
s_gate = new(useThisInstanceForSynchronization: true);
CancellableLazy`1.cs (2)
13
private
NonReentrantLock
? _gate;
50
var
gate = _gate;
EventMap.cs (1)
15
private readonly
NonReentrantLock
_guard = new();
NonReentrantLock.cs (8)
21
/// The <see cref="
NonReentrantLock
"/> provides a lightweight mutual exclusion class that doesn't
33
/// All public members of <see cref="
NonReentrantLock
"/> are thread-safe and may be used concurrently
66
public static readonly Func<
NonReentrantLock
> Factory = () => new NonReentrantLock(useThisInstanceForSynchronization: true);
69
/// Blocks the current thread until it can enter the <see cref="
NonReentrantLock
"/>, while observing a
223
/// <param name="obj">The syncLock that protects a <see cref="
NonReentrantLock
"/> instance.</param>
241
/// Since we want to avoid boxing the return from <see cref="
NonReentrantLock
.DisposableWait"/>, this type must be public.
245
private readonly
NonReentrantLock
_semaphore;
247
public SemaphoreDisposer(
NonReentrantLock
semaphore)