Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildTool/System/RemoteExecutor.cs
Ben Marsh 13d012685f Merging copyright update from 4.19 branch.
#rb none
#rnx
#jira

[CL 3818977 by Ben Marsh in Staging-4.19 branch]
2018-01-02 15:30:26 -05:00

33 lines
595 B
C#

// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UnrealBuildTool
{
class RemoteExecutor : LocalExecutor
{
public RemoteExecutor()
{
}
public override string Name
{
get { return "Remote"; }
}
public override int GetMaxActionsToExecuteInParallel()
{
Int32 RemoteCPUCount = RPCUtilHelper.GetCommandSlots();
if (RemoteCPUCount == 0)
{
RemoteCPUCount = Environment.ProcessorCount;
}
return RemoteCPUCount;
}
}
}