Property | Type | Description | |
---|---|---|---|
$threads | Array of threads |
Property | Type | Description | |
---|---|---|---|
$spawnCounter | integer | Counter of spawned threads |
Method | Description | |
---|---|---|
getCount ( ) : integer | Return the collected threads count | |
push ( |
Pushes certain thread to the collection | |
removeTerminated ( ) : integer | Remove terminated threads from the collection | |
signal ( $sig ) : void | Send a signal to threads | |
start ( ) : void | Start all collected threads | |
stop ( $kill = false ) : void | Stop all collected threads |
public removeTerminated ( ) : integer | ||
return | integer | Rest threads count |
protected int $spawnCounter | ||
return | integer |