Navigation
Unreal Engine C++ API Reference > Runtime > Core > Misc
Inheritance Hierarchy
- FRunnable
- FSingleThreadRunnable
- FMonitoredProcess
- FSerializedUATProcess
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/MonitoredProcess.h |
Include | #include "Misc/MonitoredProcess.h" |
Syntax
class FMonitoredProcess :
public FRunnable ,
private FSingleThreadRunnable
Remarks
Implements an external process that can be monitored.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bCreatePipes | Holds if we should create pipes. |
![]() |
bool | bIsRunning | Is the thread running? |
![]() |
FSimpleDelegate | CanceledDelegate | Holds a delegate that is executed when the process has been canceled. */. |
![]() |
bool | Canceling | Whether the process is being canceled. */. |
![]() |
FOnMonitoredProcessCompleted | CompletedDelegate | Holds a delegate that is executed when a monitored process completed. */. |
![]() |
FDateTime | EndTime | Holds the time at which the process ended. */. |
![]() |
bool | Hidden | Whether the window of the process should be hidden. */. |
![]() |
bool | KillTree | Whether to kill the entire process tree when cancelling this process. */. |
![]() |
FString | OutputBuffer | Buffered output text which does not contain a newline. |
![]() |
FOnMonitoredProcessOutput | OutputDelegate | Holds a delegate that is executed when a monitored process produces output. */. |
![]() |
FString | Params | Holds the command line parameters. */. |
![]() |
FProcHandle | ProcessHandle | Holds the handle to the process. */. |
![]() |
void * | ReadPipe | Holds the non-inheritable read end of stdout pipe. */. |
![]() |
int | ReturnCode | Holds the return code. */. |
![]() |
float | SleepInterval | Sleep interval to use. |
![]() |
FDateTime | StartTime | Holds the time at which the process started. */. |
![]() |
FRunnableThread * | Thread | Holds the monitoring thread object. */. |
![]() |
FString | URL | Holds the URL of the executable to launch. */. |
![]() |
FString | WorkingDir | Holds the URL of the working dir for the process. */. |
![]() |
void * | WritePipe | Holds the inheritable write end of stdout pipe. */. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FMonitoredProcess
(
const FString& InURL, |
Creates a new monitored process. | |
![]() |
FMonitoredProcess
(
const FString& InURL, |
Creates a new monitored process. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Destructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Cancel
(
bool InKillTree |
Cancels the process. |
![]() ![]() |
FString | Returns the commandline of the process which will be executed if Launch is called | |
![]() ![]() |
FTimespan | GetDuration () |
Gets the duration of time that the task has been running. |
![]() ![]() |
const FString & | Returns the full output, wihtout needing to hookup a delegate and buffer it externally. | |
![]() ![]() |
FProcHandle | Gets the Process Handle. The instance can be invalid if the process was not created. | |
![]() ![]() |
int | Returns the return code from the exited process | |
![]() ![]() |
bool | Launch () |
Launches the process. |
![]() |
FSimpleDelegate & | OnCanceled () |
Returns a delegate that is executed when the process has been canceled. |
![]() |
FOnMonitoredProcessCompleted & | OnCompleted () |
Returns a delegate that is executed when a monitored process completed. |
![]() |
FOnMonitoredProcessOutput & | OnOutput () |
Returns a delegate that is executed when a monitored process produces output. |
![]() |
void | ProcessOutput
(
const FString& Output |
Processes the given output string. |
![]() |
void | SetSleepInterval
(
float InSleepInterval |
Sets the sleep interval to be used in the main thread loop. |
![]() |
void | TickInternal () |
|
![]() |
bool | Update () |
Checks whether the process is still running. |
Overridden from FRunnable
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Exit () |
Exits the runnable object. |
![]() ![]() |
FSingleThreadRunnable * | Gets single thread interface pointer used for ticking this runnable when multi-threading is disabled. | |
![]() ![]() |
bool | Init () |
Initializes the runnable object. |
![]() ![]() |
uint32 | Run () |
Runs the runnable object. |
![]() ![]() |
void | Stop () |
Stops the runnable object.This is called if a thread is requested to terminate early. |
Overridden from FSingleThreadRunnable
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Tick () |
FSingleThreadRunnable interface |