1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-03 10:07:49 +01:00
parallel/lib/Worker/WorkerProcess.php
2016-07-20 09:23:50 -05:00

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));
}
}