The Pool classはじめにA Pool is a container for, and controller of, an adjustable number of Workers. Pooling provides a higher level abstraction of the Worker functionality, including the management of references in the way required by pthreads. クラス概要Pool
class Pool
{
/* プロパティ */
protected
$size;
protected
$class;
protected
$workers;
protected
$ctor;
protected
$last;
/* メソッド */
public __construct(int
$size , string $class = ?, array $ctor = ?)public int collect(Callable
$collector = ?)public void resize(int
$size )public void shutdown()
public int submit(Threaded
$task )public int submitTo(int
}$worker , Threaded $task )プロパティ
|