31 references to _gate
Microsoft.CodeAnalysis.Workspaces (31)
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)) 444using (_project._gate.DisposableWait()) 499using (_project._gate.DisposableWait())
Workspace\ProjectSystem\ProjectSystemProject.cs (20)
222using (_gate.DisposableWait()) 462using (_gate.DisposableWait()) 500using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait()) 788using (_gate.DisposableWait()) 833using (_gate.DisposableWait()) 861using (_gate.DisposableWait()) 887using (_gate.DisposableWait()) 941using (_gate.DisposableWait()) 1034using (_gate.DisposableWait()) 1072using (_gate.DisposableWait()) 1080Debug.Assert(_gate.CurrentCount == 0); 1091using (_gate.DisposableWait()) 1104using (_gate.DisposableWait()) 1156using (_gate.DisposableWait()) 1184using (_gate.DisposableWait()) 1192Debug.Assert(_gate.CurrentCount == 0); 1209using (_gate.DisposableWait()) 1235using (_gate.DisposableWait()) 1260using (_gate.DisposableWait())