18 references to _gate
Microsoft.CodeAnalysis.Remote.ServiceHub (18)
Host\RemoteWorkspace.cs (4)
119
using (await
_gate
.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
152
using (await
_gate
.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
176
using (await
_gate
.DisposableWaitAsync(CancellationToken.None).ConfigureAwait(false))
289
using (await
_gate
.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Host\RemoteWorkspace.InFlightSolution.cs (7)
42
/// <see cref="RemoteWorkspace.
_gate
"/>.
58
Contract.ThrowIfFalse(workspace.
_gate
.CurrentCount == 0);
80
Contract.ThrowIfFalse(_workspace.
_gate
.CurrentCount == 0);
89
Contract.ThrowIfFalse(_workspace.
_gate
.CurrentCount == 0);
108
Contract.ThrowIfFalse(_workspace.
_gate
.CurrentCount == 0);
145
Contract.ThrowIfFalse(_workspace.
_gate
.CurrentCount == 0);
159
Contract.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
"/>.
45
Contract.ThrowIfFalse(
_gate
.CurrentCount == 0);
68
Contract.ThrowIfFalse(
_gate
.CurrentCount == 0);
104
Contract.ThrowIfFalse(
_gate
.CurrentCount == 0);
123
using (await
_gate
.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))