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)
254using (_gate.DisposableWait()) 507using (_gate.DisposableWait()) 516using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 554using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait()) 934using (_gate.DisposableWait()) 979using (_gate.DisposableWait()) 1007using (_gate.DisposableWait()) 1037using (_gate.DisposableWait()) 1080using (_gate.DisposableWait()) 1204using (_gate.DisposableWait()) 1218using (_gate.DisposableWait()) 1226Debug.Assert(_gate.CurrentCount == 0); 1237using (_gate.DisposableWait()) 1250using (_gate.DisposableWait()) 1273using (_gate.DisposableWait()) 1288using (_gate.DisposableWait()) 1296Debug.Assert(_gate.CurrentCount == 0); 1309using (_gate.DisposableWait()) 1335using (_gate.DisposableWait()) 1349using (_gate.DisposableWait())