Navigation
API > API/Runtime > API/Runtime/Core
Wrapper around Unix pid_t. Should not be copyable as changes in the process state won't be properly propagated to all copies.
| Name | FProcState |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Unix/UnixPlatformProcess.h |
| Include Path | #include "Unix/UnixPlatformProcess.h" |
Syntax
struct FProcState
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FProcState () |
Default constructor. | Unix/UnixPlatformProcess.h | |
FProcState
(
const FProcState& Other |
Copy constructor - should not be publicly accessible | Unix/UnixPlatformProcess.h | |
FProcState
(
pid_t InProcessId, |
Initialization constructor. | Unix/UnixPlatformProcess.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FProcState() |
Destructor. | Unix/UnixPlatformProcess.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
pid_t GetProcessId() |
Getter for process id | Unix/UnixPlatformProcess.h | |
bool GetReturnCode
(
int32* ReturnCodePtr |
Returns child's return code (only valid to call if not running) | Unix/UnixPlatformProcess.h | |
bool IsRunning() |
Returns whether this process is running. | Unix/UnixPlatformProcess.h | |
void Wait() |
Waits for the process to end. Has a side effect (stores child's return code). | Unix/UnixPlatformProcess.h |
Protected
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FProcState & operator=
(
const FProcState& Other |
Assignment operator - should not be publicly accessible | Unix/UnixPlatformProcess.h |