5 references to new
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)
15private readonly NonReentrantLock _guard = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
66public static readonly Func<NonReentrantLock> Factory = () => new NonReentrantLock(useThisInstanceForSynchronization: true);
Workspace\Workspace.cs (1)
49private readonly NonReentrantLock _stateLock = new(useThisInstanceForSynchronization: true);