|
GenisysPro
for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
|
Public Member Functions | |
| __construct ($size, $class, $ctor=[]) | |
| collect (callable $collector) | |
| resize ($size) | |
| shutdown () | |
| submit (Threaded $task) | |
| submitTo ($worker, Threaded $task) | |
Protected Attributes | |
| $size | |
| $class | |
| $workers | |
| $ctor | |
| $last | |
Pool class
A Pool is a container for, and controller of, a number of Worker threads, the number of threads can be adjusted during execution, additionally the Pool provides an easy mechanism to maintain and collect references in the proper way.
| __construct | ( | $size, | |
| $class, | |||
$ctor = [] |
|||
| ) |
| collect | ( | callable | $collector | ) |
Collect references to completed tasks
Allows the Pool to collect references determined to be garbage by the given collector
| callable | $collector | http://www.php.net/manual/en/pool.collect.php |
| resize | ( | $size | ) |
| shutdown | ( | ) |
| submit | ( | Threaded | $task | ) |
| submitTo | ( | $worker, | |
| Threaded | $task | ||
| ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |