Zhamao Framework  3.0.0-beta1
A high-performance chatbot + web framework
ProcessStateManager类 参考

静态 Public 成员函数

static removeProcessState (int $type, int|string $id_or_name=null)
 
static getProcessState (int $type, mixed $id_or_name=null)
 
static saveProcessState (int $type, int|string $pid, array $data=[])
 
static isStateEmpty ()
 

静态 Public 属性

static array $process_mode = []
 

成员函数说明

◆ getProcessState()

static getProcessState ( int  $type,
mixed  $id_or_name = null 
)
static

用于框架内部获取多进程运行状态的函数

返回
false|int|mixed
异常
ZMKnownException
函数调用图:

◆ isStateEmpty()

static isStateEmpty ( )
static
函数调用图:

◆ removeProcessState()

static removeProcessState ( int  $type,
int|string  $id_or_name = null 
)
static
异常
ZMKnownException
函数调用图:

◆ saveProcessState()

static saveProcessState ( int  $type,
int|string  $pid,
array  $data = [] 
)
static

将各进程的pid写入文件,以备后续崩溃及僵尸进程处理使用

函数调用图:

结构体成员变量说明

◆ $process_mode

array $process_mode = []
static

该类的文档由以下文件生成: