mirror of
https://github.com/danog/parallel.git
synced 2024-12-03 10:07:49 +01:00
17 lines
372 B
PHP
17 lines
372 B
PHP
<?php
|
|
namespace Icicle\Concurrent\Worker;
|
|
|
|
use Icicle\Concurrent\Process\ChannelledProcess;
|
|
|
|
/**
|
|
* A worker thread that executes task objects.
|
|
*/
|
|
class WorkerProcess extends AbstractWorker
|
|
{
|
|
public function __construct()
|
|
{
|
|
$dir = dirname(dirname(__DIR__)) . '/bin';
|
|
parent::__construct(new ChannelledProcess($dir . '/worker.php', $dir));
|
|
}
|
|
}
|