Documentation

Class Phalcon\Thread\Pool

Source on GitHub

<?php

 $pool = new Phalcon\Thread\Pool(2);
 $pool->add(function(){ echo 'Hello world!';});

Methods

public __construct ([int $num])

Phalcon\Thread\Pool constructor

public int getNumThreads ()

public boolean inc (int $num)

public boolean dec (int $num)

public add (unknown $work, [array $args])

public wait ()

public destroy ()