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)
255using (_gate.DisposableWait()) 508using (_gate.DisposableWait()) 517using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 555using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait()) 935using (_gate.DisposableWait()) 980using (_gate.DisposableWait()) 1008using (_gate.DisposableWait()) 1038using (_gate.DisposableWait()) 1081using (_gate.DisposableWait()) 1239using (_gate.DisposableWait()) 1253using (_gate.DisposableWait()) 1261Debug.Assert(_gate.CurrentCount == 0); 1272using (_gate.DisposableWait()) 1285using (_gate.DisposableWait()) 1308using (_gate.DisposableWait()) 1323using (_gate.DisposableWait()) 1331Debug.Assert(_gate.CurrentCount == 0); 1344using (_gate.DisposableWait()) 1370using (_gate.DisposableWait()) 1384using (_gate.DisposableWait())