3 instantiations of ResourceRequest
Microsoft.Build (3)
BackEnd\Shared\ResourceRequest.cs (3)
57
=> new
ResourceRequest
(isResourceAcquire: true, globalRequestId, numCores, isBlocking);
63
=> new
ResourceRequest
(isResourceAcquire: false, globalRequestId, numCores, isBlocking: false);
110
return new
ResourceRequest
(translator);
17 references to ResourceRequest
Microsoft.Build (14)
BackEnd\BuildManager\BuildManager.cs (4)
604
_nodeManager.RegisterPacketHandler(NodePacketType.ResourceRequest,
ResourceRequest
.FactoryForDeserialization, this);
1619
ResourceRequest
request = ExpectPacketType<
ResourceRequest
>(packet, NodePacketType.ResourceRequest);
2358
private void HandleResourceRequest(int node,
ResourceRequest
request)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
1019
private void Builder_OnResourceRequest(
ResourceRequest
request)
BackEnd\Components\BuildRequestEngine\IBuildRequestEngine.cs (1)
48
internal delegate void ResourceRequestDelegate(
ResourceRequest
request);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (3)
506
RaiseResourceRequest(
ResourceRequest
.CreateAcquireRequest(_requestEntry.Request.GlobalRequestId, requestedCores, waitForCores));
540
RaiseResourceRequest(
ResourceRequest
.CreateReleaseRequest(_requestEntry.Request.GlobalRequestId, coresToRelease));
1081
private void RaiseResourceRequest(
ResourceRequest
request)
BackEnd\Node\InProcNode.cs (1)
274
private void OnResourceRequest(
ResourceRequest
request)
BackEnd\Node\OutOfProcNode.cs (1)
414
private void OnResourceRequest(
ResourceRequest
request)
BackEnd\Shared\ResourceRequest.cs (2)
56
public static
ResourceRequest
CreateAcquireRequest(int globalRequestId, int numCores, bool isBlocking)
62
public static
ResourceRequest
CreateReleaseRequest(int globalRequestId, int numCores)
BackEnd\Shared\ResourceResponse.cs (1)
9
/// This packet is sent by the scheduler in response to <see cref="
ResourceRequest
"/> to grant resources to a node.
Microsoft.Build.Engine.UnitTests (3)
BackEnd\BuildRequestEngine_Tests.cs (3)
178
public void RaiseResourceRequest(
ResourceRequest
request)
274
private
ResourceRequest
_engineResourceRequest_Request;
612
private void Engine_ResourceRequest(
ResourceRequest
request)