Zhamao Framework 3.2.4
A high-performance chatbot + web framework
载入中...
搜索中...
未找到
ProcessStateManager类 参考

静态 Public 成员函数

static isMultiWorkers ()
 
static isTaskWorker ()
 
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
函数调用图:

◆ isMultiWorkers()

static isMultiWorkers ( )
static

查看是否为多 Worker 模式,插件可能用得到

◆ isStateEmpty()

static isStateEmpty ( )
static

◆ isTaskWorker()

static isTaskWorker ( )
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

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