Files
UnrealEngine/Engine/Source/Programs/TestPAL/Private/Parent.h
2025-05-18 13:04:45 +08:00

29 lines
554 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "HAL/PlatformProcess.h"
class FParent
{
/** Children to be controlled */
TArray< FProcHandle > Children;
/** Total children to spawn */
int NumTotalChildren;
/** Max children at once */
int MaxChildrenAtOnce;
/** Launches the child, returns the launched process handle. */
FProcHandle Launch(bool bDetached = false);
public:
/** Spawns the children one by one */
void Run();
FParent(int InNumTotalChildren, int InMaxChildrenAtOnce);
};