32 references to _gate
Microsoft.CodeAnalysis.Workspaces (32)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (11)
29/// <remarks>This class should be free-threaded, and any synchronization is done via <see cref="ProjectSystemProject._gate"/>. 117using (_project._gate.DisposableWait()) 169using (_project._gate.DisposableWait()) 208Debug.Assert(_project._gate.CurrentCount == 0); 248Debug.Assert(_project._gate.CurrentCount == 0); 275using (_project._gate.DisposableWait()) 330using (_project._gate.DisposableWait()) 392using (_project._gate.DisposableWait()) 400using (await _project._gate.DisposableWaitAsync().ConfigureAwait(false)) 479using (await _project._gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 526using (_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())