engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Protected 属性 | 友元 | 所有成员列表
FProcState结构体 参考

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
 

Protected 属性

bool bFireAndForget
 Whether this child is fire-and-forget
 
bool bHasBeenWaitedFor
 Whether the process's return code has been collected
 
bool bIsRunning
 Whether the process has finished or not (cached)
 
pid_t ProcessId
 Process id
 
int32 ReturnCode
 Return code of the process (if negative, means that process did not finish gracefully but was killed/crashed
 

友元

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.

成员函数说明

◆ GetReturnCode() [1/2]

bool FProcState::GetReturnCode ( int32 *  ReturnCodePtr)

Returns child's return code (only valid to call if not running)

参数
ReturnCodeset to return code if not NULL (use the value only if method returned true)
返回
return whether we have the return code (we don't if it crashed)

◆ GetReturnCode() [2/2]

bool FProcState::GetReturnCode ( int32 *  ReturnCodePtr)

Returns child's return code (only valid to call if not running)

参数
ReturnCodeset to return code if not NULL (use the value only if method returned true)
返回
return whether we have the return code (we don't if it crashed)

◆ IsRunning() [1/2]

bool FProcState::IsRunning ( )

Returns whether this process is running.

返回
true if running

◆ IsRunning() [2/2]

bool FProcState::IsRunning ( )

Returns whether this process is running.

返回
true if running

◆ Wait() [1/2]

void FProcState::Wait ( )

Waits for the process to end.

Has a side effect (stores child's return code).

◆ Wait() [2/2]

void FProcState::Wait ( )

Waits for the process to end.

Has a side effect (stores child's return code).


该结构体的文档由以下文件生成: