18 references to _gate
Microsoft.CodeAnalysis.Remote.ServiceHub (18)
Host\RemoteWorkspace.cs (4)
120
using (await
_gate
.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
153
using (await
_gate
.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
177
using (await
_gate
.DisposableWaitAsync(CancellationToken.None).ConfigureAwait(false))
290
using (await
_gate
.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Host\RemoteWorkspace.InFlightSolution.cs (7)
43
/// <see cref="RemoteWorkspace.
_gate
"/>.
59
Contract.ThrowIfFalse(workspace.
_gate
.CurrentCount == 0);
81
Contract.ThrowIfFalse(_workspace.
_gate
.CurrentCount == 0);
90
Contract.ThrowIfFalse(_workspace.
_gate
.CurrentCount == 0);
109
Contract.ThrowIfFalse(_workspace.
_gate
.CurrentCount == 0);
146
Contract.ThrowIfFalse(_workspace.
_gate
.CurrentCount == 0);
160
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))