1 write to _lock
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
424
_lock
= needsLock ? new SemaphoreSlim(initialCount: 1, maxCount: 1) : null;
4 references to _lock
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (4)
491
Debug.Assert(
_lock
is not null, "Should only be invoked when _lock is non-null");
492
return
_lock
.WaitAsync(CancellationToken.None);
498
Debug.Assert(
_lock
is not null, "Should only be invoked when _lock is non-null");
499
_lock
.Release();