![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MacPlatformProcess.h>
Public Member Functions | |
| FProcState (const FProcState &)=delete | |
| FProcState & | operator= (const FProcState &)=delete |
| FProcState (pid_t InProcessId) | |
| ~FProcState () | |
| UE_FORCEINLINE_HINT pid_t | GetProcessId () const |
| bool | IsRunning () |
| bool | GetReturnCode (int32 *ReturnCodePtr) |
| void | Wait () |
| FProcState () | |
| FProcState (pid_t InProcessId, bool bInFireAndForget) | |
| ~FProcState () | |
| UE_FORCEINLINE_HINT pid_t | GetProcessId () const |
| bool | IsRunning () |
| bool | GetReturnCode (int32 *ReturnCodePtr) |
| void | Wait () |
Protected Member Functions | |
| FProcState (const FProcState &Other) | |
| FProcState & | operator= (const FProcState &Other) |
Protected Attributes | |
| pid_t | ProcessId |
| bool | bIsRunning = true |
| bool | bHasBeenWaitedFor = false |
| int32 | ReturnCode = -1 |
| bool | bFireAndForget |
Friends | |
| struct | FUnixPlatformProcess |
Wrapper around Unix pid_t. Should not be copyable as changes in the process state won't be properly propagated to all copies.
|
delete |
|
explicit |
Initialization constructor.
| FProcState::~FProcState | ( | ) |
Destructor.
|
inline |
Default constructor.
Initialization constructor.
| FProcState::~FProcState | ( | ) |
Destructor.
|
inlineprotected |
Copy constructor - should not be publicly accessible
|
inline |
Getter for process id
|
inline |
Getter for process id
Returns child's return code (only valid to call if not running)
| ReturnCode | set to return code if not NULL (use the value only if method returned true) |
Returns child's return code (only valid to call if not running)
| ReturnCode | set to return code if not NULL (use the value only if method returned true) |
| bool FProcState::IsRunning | ( | ) |
Returns whether this process is running.
| bool FProcState::IsRunning | ( | ) |
Returns whether this process is running.
|
delete |
|
inlineprotected |
Assignment operator - should not be publicly accessible
| void FProcState::Wait | ( | ) |
Waits for the process to end. Has a side effect (stores child's return code).
| void FProcState::Wait | ( | ) |
Waits for the process to end. Has a side effect (stores child's return code).
|
friend |
|
protected |
Whether this child is fire-and-forget
Whether the process's return code has been collected
|
protected |
Process id
|
protected |
Return code of the process (if negative, means that process did not finish gracefully but was killed/crashed