public function __construct($maxThreads, $minThreads, ThreadCreator $creator) { parent::__construct(); $this->mutex = new MutexImpl($this); $this->maxThreads = $maxThreads; $this->minThreads = $minThreads; $this->creator = $creator; for ($i = 0; $i < $minThreads; $i++) { $thread = $creator->getWorkerThread(); $this->setupThread($thread); $this->idle[] = $thread; } }
public function __construct(EventHandler $handler) { parent::__construct(); $this->handler = $handler; }
/** * */ public function __construct() { parent::__construct(); }