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)
491Debug.Assert(_lock is not null, "Should only be invoked when _lock is non-null"); 492return _lock.WaitAsync(CancellationToken.None); 498Debug.Assert(_lock is not null, "Should only be invoked when _lock is non-null"); 499_lock.Release();