Wrapper around Unix pid_t. 更多...
#include <UnixPlatformProcess.h>
Public 成员函数 | |
| FORCEINLINE | FProcState () |
| Default constructor. | |
| FORCEINLINE | FProcState () |
| Default constructor. | |
| FProcState (pid_t InProcessId, bool bInFireAndForget) | |
| Initialization constructor. | |
| FProcState (pid_t InProcessId, bool bInFireAndForget) | |
| Initialization constructor. | |
| FORCEINLINE pid_t | GetProcessId () const |
| Getter for process id | |
| FORCEINLINE pid_t | GetProcessId () const |
| Getter for process id | |
| bool | GetReturnCode (int32 *ReturnCodePtr) |
| Returns child's return code (only valid to call if not running) 更多... | |
| bool | GetReturnCode (int32 *ReturnCodePtr) |
| Returns child's return code (only valid to call if not running) 更多... | |
| bool | IsRunning () |
| Returns whether this process is running. 更多... | |
| bool | IsRunning () |
| Returns whether this process is running. 更多... | |
| void | Wait () |
| Waits for the process to end. 更多... | |
| void | Wait () |
| Waits for the process to end. 更多... | |
| ~FProcState () | |
| Destructor. | |
| ~FProcState () | |
| Destructor. | |
Protected 成员函数 | |
| FORCEINLINE | FProcState (const FProcState &Other) |
| Copy constructor - should not be publicly accessible | |
| FORCEINLINE | FProcState (const FProcState &Other) |
| Copy constructor - should not be publicly accessible | |
| FORCEINLINE FProcState & | operator= (const FProcState &Other) |
| Assignment operator - should not be publicly accessible | |
| FORCEINLINE FProcState & | operator= (const FProcState &Other) |
| Assignment operator - should not be publicly accessible | |
友元 | |
| 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.
| bool FProcState::GetReturnCode | ( | int32 * | ReturnCodePtr | ) |
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::GetReturnCode | ( | int32 * | ReturnCodePtr | ) |
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.
| 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).