32 references to _gate
Microsoft.CodeAnalysis.Workspaces (32)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (11)
28/// <remarks>This class should be free-threaded, and any synchronization is done via <see cref="ProjectSystemProject._gate"/>. 104using (_project._gate.DisposableWait()) 156using (_project._gate.DisposableWait()) 195Debug.Assert(_project._gate.CurrentCount == 0); 235Debug.Assert(_project._gate.CurrentCount == 0); 262using (_project._gate.DisposableWait()) 317using (_project._gate.DisposableWait()) 379using (_project._gate.DisposableWait()) 387using (await _project._gate.DisposableWaitAsync().ConfigureAwait(false)) 446using (_project._gate.DisposableWait()) 501using (_project._gate.DisposableWait())
Workspace\ProjectSystem\ProjectSystemProject.cs (21)
254using (_gate.DisposableWait()) 526using (_gate.DisposableWait()) 535using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 573using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait()) 961using (_gate.DisposableWait()) 1006using (_gate.DisposableWait()) 1034using (_gate.DisposableWait()) 1064using (_gate.DisposableWait()) 1107using (_gate.DisposableWait()) 1265using (_gate.DisposableWait()) 1279using (_gate.DisposableWait()) 1287Debug.Assert(_gate.CurrentCount == 0); 1298using (_gate.DisposableWait()) 1311using (_gate.DisposableWait()) 1334using (_gate.DisposableWait()) 1349using (_gate.DisposableWait()) 1357Debug.Assert(_gate.CurrentCount == 0); 1370using (_gate.DisposableWait()) 1396using (_gate.DisposableWait()) 1410using (_gate.DisposableWait())