\Imi\ProcessProcessPoolManager

进程池管理类

Summary

Methods
Properties
Constants
create()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

create()

create(string  $name, integer  $workerNum = null, array  $args = array(), integer  $ipcType, string  $msgQueueKey = null) : \Swoole\Process\Pool

创建进程池 本方法无法在控制器中使用 返回\Swoole\Process\Pool对象实例

Parameters

string $name
integer $workerNum

指定工作进程的数量

array $args
integer $ipcType

进程间通信的模式,默认为0表示不使用任何进程间通信特性

string $msgQueueKey

Returns

\Swoole\Process\Pool