Pool::__construct

Pool::__construct

(PECL pthreads >= 2.0.0)

Pool::__constructCreates a new Pool of Workers

Description

public Pool Pool::__construct ( integer $size [, string $class [, array $ctor ]] )

Construct a new pool of workers. Pools lazily create their threads, which means new threads will only be spawned when they are required to execute tasks.

Parameters

size

The maximum number of workers for this pool to create

clas