php8.5
Home/ Manual/ reference / pthreads/ The Pool class

The Pool class

A Pool is a container for, and controller of, an adjustable number of Workers.

Intro

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.

Class synopsis

class Pool { }

Properties

size

maximum number of Workers this Pool can use

class

the class of the Worker

workers

references to Workers

ctor

the arguments for constructor of new Workers

last

offset in workers of the last Worker used

Pool

In this section

Source: reference/pthreads/pool.xml · from the official PHP manual (php/doc-en)