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"/>. 116using (_project._gate.DisposableWait()) 168using (_project._gate.DisposableWait()) 207Debug.Assert(_project._gate.CurrentCount == 0); 247Debug.Assert(_project._gate.CurrentCount == 0); 274using (_project._gate.DisposableWait()) 329using (_project._gate.DisposableWait()) 391using (_project._gate.DisposableWait()) 399using (await _project._gate.DisposableWaitAsync().ConfigureAwait(false)) 478using (await _project._gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 525using (_project._gate.DisposableWait())
Workspace\ProjectSystem\ProjectSystemProject.cs (21)
241using (_gate.DisposableWait()) 516using (_gate.DisposableWait()) 525using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 563using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait()) 951using (_gate.DisposableWait()) 996using (_gate.DisposableWait()) 1024using (_gate.DisposableWait()) 1055using (_gate.DisposableWait()) 1101using (_gate.DisposableWait()) 1221using (_gate.DisposableWait()) 1235using (_gate.DisposableWait()) 1243Debug.Assert(_gate.CurrentCount == 0); 1254using (_gate.DisposableWait()) 1267using (_gate.DisposableWait()) 1290using (_gate.DisposableWait()) 1305using (_gate.DisposableWait()) 1313Debug.Assert(_gate.CurrentCount == 0); 1326using (_gate.DisposableWait()) 1352using (_gate.DisposableWait()) 1366using (_gate.DisposableWait())