31 instantiations of BuildRequestBlocker
Microsoft.Build (7)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (6)
568
BuildRequestBlocker blocker = new
BuildRequestBlocker
(currentEntry.Request.GlobalRequestId, currentEntry.GetActiveTargets(), requestsToIssue.ToArray());
1047
IssueBuildRequest(new
BuildRequestBlocker
(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), YieldAction.Yield));
1056
IssueBuildRequest(new
BuildRequestBlocker
(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), YieldAction.Reacquire));
1074
IssueBuildRequest(new
BuildRequestBlocker
(issuingEntry.Request.GlobalRequestId));
1085
IssueBuildRequest(new
BuildRequestBlocker
(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), unsubmittedRequest.BlockingGlobalRequestId, unsubmittedRequest.BlockingTarget, unsubmittedRequest.PartialBuildResult));
1273
BuildRequestBlocker blocker = new
BuildRequestBlocker
(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), requestsToIssue.ToArray());
BackEnd\Shared\BuildRequestBlocker.cs (1)
246
return new
BuildRequestBlocker
(translator);
Microsoft.Build.Engine.UnitTests (24)
BackEnd\Scheduler_Tests.cs (24)
79
_scheduler.ReportRequestBlocked(1, new
BuildRequestBlocker
(-1, Array.Empty<string>(), new BuildRequest[] { _defaultParentRequest }));
110
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request });
128
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request });
152
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request });
175
BuildRequestBlocker blocker = new
BuildRequestBlocker
(-1, Array.Empty<string>(), new BuildRequest[] { request });
182
blocker = new
BuildRequestBlocker
(0, new string[] { "foo" }, new BuildRequest[] { childRequest });
206
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
226
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
249
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
277
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
301
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
328
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
354
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
398
List<ScheduleResponse> response = new List<ScheduleResponse>(_scheduler.ReportRequestBlocked(1, new
BuildRequestBlocker
(-1, Array.Empty<string>(), new BuildRequest[] { _defaultParentRequest, request1, request2, request3 })));
432
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
462
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
492
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
525
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
549
BuildRequestBlocker blocker = new
BuildRequestBlocker
(-1, Array.Empty<string>(), new[] { request1 });
592
List<ScheduleResponse> responses = new List<ScheduleResponse>(_scheduler.ReportRequestBlocked(1, new
BuildRequestBlocker
(-1, Array.Empty<string>(), new BuildRequest[] { _defaultParentRequest, request1, request2, request3 })));
627
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
646
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
666
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3 });
682
BuildRequestBlocker blocker = new
BuildRequestBlocker
(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request });
41 references to BuildRequestBlocker
Microsoft.Build (19)
BackEnd\BuildManager\BuildManager.cs (5)
597
_nodeManager!.RegisterPacketHandler(NodePacketType.BuildRequestBlocker,
BuildRequestBlocker
.FactoryForDeserialization, this);
1605
BuildRequestBlocker
blocker = ExpectPacketType<
BuildRequestBlocker
>(packet, NodePacketType.BuildRequestBlocker);
1834
BuildRequestBlocker
blocker = new BuildRequestBlocker(-1, [], [submission.BuildRequest]);
2330
private void HandleNewRequest(int node,
BuildRequestBlocker
blocker)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (6)
524
var blockersToIssue = new List<
BuildRequestBlocker
>();
568
BuildRequestBlocker
blocker = new BuildRequestBlocker(currentEntry.Request.GlobalRequestId, currentEntry.GetActiveTargets(), requestsToIssue.ToArray());
574
foreach (
BuildRequestBlocker
blocker in blockersToIssue)
678
private void RaiseRequestBlocked(
BuildRequestBlocker
blocker)
1273
BuildRequestBlocker
blocker = new BuildRequestBlocker(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), requestsToIssue.ToArray());
1343
private void IssueBuildRequest(
BuildRequestBlocker
blocker)
BackEnd\Components\BuildRequestEngine\IBuildRequestEngine.cs (1)
30
internal delegate void RequestBlockedDelegate(
BuildRequestBlocker
blocker);
BackEnd\Components\Scheduler\IScheduler.cs (1)
47
IEnumerable<ScheduleResponse> ReportRequestBlocked(int nodeId,
BuildRequestBlocker
blocker);
BackEnd\Components\Scheduler\Scheduler.cs (4)
303
public IEnumerable<ScheduleResponse> ReportRequestBlocked(int nodeId,
BuildRequestBlocker
blocker)
658
private void HandleYieldAction(SchedulableRequest parentRequest,
BuildRequestBlocker
blocker)
1620
private void HandleRequestBlockedOnInProgressTarget(SchedulableRequest blockedRequest,
BuildRequestBlocker
blocker)
1679
private void HandleRequestBlockedByNewRequests(SchedulableRequest parentRequest,
BuildRequestBlocker
blocker, List<ScheduleResponse> responses)
BackEnd\Node\InProcNode.cs (1)
252
private void OnNewRequest(
BuildRequestBlocker
blocker)
BackEnd\Node\OutOfProcNode.cs (1)
392
private void OnNewRequest(
BuildRequestBlocker
blocker)
Microsoft.Build.Engine.UnitTests (22)
BackEnd\BuildRequestEngine_Tests.cs (2)
262
private
BuildRequestBlocker
_newRequest_Request;
572
private void Engine_NewRequest(
BuildRequestBlocker
blocker)
BackEnd\Scheduler_Tests.cs (20)
110
BuildRequestBlocker
blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request });
128
BuildRequestBlocker
blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request });
152
BuildRequestBlocker
blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request });
175
BuildRequestBlocker
blocker = new BuildRequestBlocker(-1, Array.Empty<string>(), new BuildRequest[] { request });
206
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
226
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
249
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
277
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
301
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
328
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
354
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
432
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
462
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
492
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
525
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
549
BuildRequestBlocker
blocker = new BuildRequestBlocker(-1, Array.Empty<string>(), new[] { request1 });
627
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
646
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
666
BuildRequestBlocker
blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3 });
682
BuildRequestBlocker
blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request });