Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildTool/System/ActionExecutor.cs
joe kirchoff 8046ba0c0d UnrealBuildTool: Ensure Action list is ordered before running any executor. Pass in IEnumerable instead of List
#rnx
#rb trivial
#preflight 635b20e0015611ae3a0d8f30

[CL 22831783 by joe kirchoff in ue5-main branch]
2022-10-28 13:27:22 -04:00

36 lines
895 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
namespace UnrealBuildTool
{
abstract class ActionExecutor
{
public abstract string Name
{
get;
}
static protected double MemoryPerActionBytesOverride
{
get;
private set;
} = 0.0;
/// <summary>
/// Allow targets to override the expected amount of memory required for compiles, used to control the number
/// of parallel action processes.
/// </summary>
/// <param name="MemoryPerActionOverrideGB"></param>
public static void SetMemoryPerActionOverride(double MemoryPerActionOverrideGB)
{
MemoryPerActionBytesOverride = Math.Max(MemoryPerActionBytesOverride, MemoryPerActionOverrideGB * 1024 * 1024 * 1024);
}
public abstract bool ExecuteActions(IEnumerable<LinkedAction> ActionsToExecute, ILogger Logger);
}
}