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)
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()) 1065using (_gate.DisposableWait()) 1111using (_gate.DisposableWait()) 1231using (_gate.DisposableWait()) 1245using (_gate.DisposableWait()) 1253Debug.Assert(_gate.CurrentCount == 0); 1264using (_gate.DisposableWait()) 1277using (_gate.DisposableWait()) 1300using (_gate.DisposableWait()) 1315using (_gate.DisposableWait()) 1323Debug.Assert(_gate.CurrentCount == 0); 1336using (_gate.DisposableWait()) 1362using (_gate.DisposableWait()) 1376using (_gate.DisposableWait())