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)
41
/// <see cref="RemoteWorkspace.
_gate
"/>.
57
Contract.ThrowIfFalse(workspace.
_gate
.CurrentCount == 0);
79
Contract.ThrowIfFalse(_workspace.
_gate
.CurrentCount == 0);
88
Contract.ThrowIfFalse(_workspace.
_gate
.CurrentCount == 0);
107
Contract.ThrowIfFalse(_workspace.
_gate
.CurrentCount == 0);
144
Contract.ThrowIfFalse(_workspace.
_gate
.CurrentCount == 0);
158
Contract.ThrowIfFalse(_workspace.
_gate
.CurrentCount == 0);
Host\RemoteWorkspace_SolutionCaching.cs (7)
19
/// cref="
_gate
"/>.
25
/// for the same few checksum that don't run concurrently. Only read/write while holding <see cref="
_gate
"/>.
34
/// read/write while holding <see cref="
_gate
"/>.
46
Contract.ThrowIfFalse(
_gate
.CurrentCount == 0);
69
Contract.ThrowIfFalse(
_gate
.CurrentCount == 0);
105
Contract.ThrowIfFalse(
_gate
.CurrentCount == 0);
124
using (await
_gate
.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))