Property | Type | Description | |
---|---|---|---|
$max | max process count | ||
$runnable | sub process callback |
Method | Description | |
---|---|---|
__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 |