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)
253using (_gate.DisposableWait()) 506using (_gate.DisposableWait()) 515using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 553using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait()) 933using (_gate.DisposableWait()) 978using (_gate.DisposableWait()) 1006using (_gate.DisposableWait()) 1036using (_gate.DisposableWait()) 1079using (_gate.DisposableWait()) 1203using (_gate.DisposableWait()) 1217using (_gate.DisposableWait()) 1225Debug.Assert(_gate.CurrentCount == 0); 1236using (_gate.DisposableWait()) 1249using (_gate.DisposableWait()) 1272using (_gate.DisposableWait()) 1287using (_gate.DisposableWait()) 1295Debug.Assert(_gate.CurrentCount == 0); 1308using (_gate.DisposableWait()) 1334using (_gate.DisposableWait()) 1348using (_gate.DisposableWait())