18 references to _gate
Microsoft.CodeAnalysis.Remote.ServiceHub (18)
Host\RemoteWorkspace.cs (4)
119using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 152using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 176using (await _gate.DisposableWaitAsync(CancellationToken.None).ConfigureAwait(false)) 289using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Host\RemoteWorkspace.InFlightSolution.cs (7)
42/// <see cref="RemoteWorkspace._gate"/>. 58Contract.ThrowIfFalse(workspace._gate.CurrentCount == 0); 80Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0); 89Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0); 108Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0); 145Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0); 159Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0);
Host\RemoteWorkspace_SolutionCaching.cs (7)
18/// cref="_gate"/>. 24/// for the same few checksum that don't run concurrently. Only read/write while holding <see cref="_gate"/>. 33/// read/write while holding <see cref="_gate"/>. 45Contract.ThrowIfFalse(_gate.CurrentCount == 0); 68Contract.ThrowIfFalse(_gate.CurrentCount == 0); 104Contract.ThrowIfFalse(_gate.CurrentCount == 0); 123using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))