1 | <?php |
||
12 | class FixedPool extends AbstractPool |
||
13 | { |
||
14 | /** |
||
15 | * @var int max process count |
||
16 | */ |
||
17 | protected $max; |
||
18 | |||
19 | /** |
||
20 | * @param int $max |
||
21 | */ |
||
22 | 3 | public function __construct($max = 4) |
|
26 | |||
27 | 3 | public function execute(Process $process) |
|
36 | |||
37 | /** |
||
38 | * wait for all process done |
||
39 | * |
||
40 | * @param bool $block block the master process |
||
41 | * to keep the sub process count all the time |
||
42 | * @param int $interval check time interval |
||
43 | */ |
||
44 | 3 | public function wait($block = false, $interval = 100) |
|
61 | |||
62 | } |
||
1 ignored issue
–
show
|