프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$max | max process count | ||
$runnable | sub process callback |
메소드 | 설명 | |
---|---|---|
__construct ( callable | Jenner\SimpleFork\Runnable $callback, integer $max = 4 ) | ||
count ( ) : integer | return process count | |
getProcesses ( ) : |
get all processes | |
keep ( boolean $block = false, integer $interval = 100 ) | keep sub process count | |
reload ( boolean $block = true ) | start the same number processes and kill the old sub process just like nginx -s reload this method will block until all the old process exit; | |
start ( ) | start the pool |
public __construct ( callable | Jenner\SimpleFork\Runnable $callback, integer $max = 4 ) | ||
$callback | callable | Jenner\SimpleFork\Runnable | |
$max | integer |