Sese Framework
x.y.z
A cross-platform framework
|
进程类 更多...
#include <Process.h>
Public 类型 | |
using | Ptr = std::unique_ptr<Process> |
Public 成员函数 | |
int | wait () const noexcept |
bool | kill () const noexcept |
pid_t | getProcessId () const noexcept |
virtual | ~Process () noexcept=default |
静态 Public 成员函数 | |
static Process::Ptr | create (const char *command) noexcept |
static Result< Process::Ptr > | createEx (const char *command) noexcept |
static pid_t | getCurrentProcessId () noexcept |
Private 成员函数 | |
Process ()=default | |
静态 Private 成员函数 | |
static void | exec (char *p_command) noexcept |
static size_t | count (const char *p_command) noexcept |
static char * | spilt (char *p_command) noexcept |
Private 属性 | |
pid_t | id = -1 |
进程类
using sese::system::Process::Ptr = std::unique_ptr<Process> |
|
privatedefault |
|
virtualdefaultnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnodiscardnoexcept |
获取当前进程 ID
|
nodiscardnoexcept |
|
nodiscardnoexcept |
结束进程
|
staticprivatenoexcept |
引用了 count().
|
nodiscardnoexcept |
等待进程结束
|
private |
被这些函数引用 getProcessId().