17 references to _gate
Microsoft.CodeAnalysis.Workspaces (17)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (16)
38/// Access to this is synchronized via <see cref="_gate"/> 207Contract.ThrowIfFalse(_gate.CurrentCount == 0); 214Contract.ThrowIfFalse(_gate.CurrentCount == 0); 222using (_gate.DisposableWait()) 233using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 244using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait()) 256using (_gate.DisposableWait()) 271using (_gate.DisposableWait()) 292using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait()) 308Contract.ThrowIfFalse(_gate.CurrentCount == 0); 355Contract.ThrowIfFalse(_gate.CurrentCount == 0); 383Contract.ThrowIfFalse(_gate.CurrentCount == 0); 422Contract.ThrowIfFalse(_gate.CurrentCount == 0); 447Contract.ThrowIfFalse(_gate.CurrentCount == 0);
Workspace\ProjectSystem\ProjectSystemProjectFactory.ProjectUpdateState.cs (1)
18/// This state is updated by various project system update operations under the <see cref="_gate"/>. Importantly,