|
Genisys
Genisys API 1.9.3
A server software for Minecraft: Pocket Edition with many features
|
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 | ( | ) |
Shutdown all Workers in this Pool
| submit | ( | Threaded | $task | ) |
| submitTo | ( | $worker, | |
| Threaded | $task | ||
| ) |