ThreadManager
extends Volatile
in package
Table of Contents
- $instance : ThreadManager|null
- add() : void
- getAll() : array<string|int, Worker>|array<string|int, Thread>
- getInstance() : ThreadManager
- init() : void
- remove() : void
- stopAll() : int
Properties
$instance
private
static ThreadManager|null
$instance
= null
Methods
add()
public
add(Worker|Thread $thread) : void
Parameters
Return values
void —getAll()
public
getAll() : array<string|int, Worker>|array<string|int, Thread>
Return values
array<string|int, Worker>|array<string|int, Thread> —getInstance()
public
static getInstance() : ThreadManager
Return values
ThreadManager —init()
public
static init() : void
Return values
void —remove()
public
remove(Worker|Thread $thread) : void
Parameters
Return values
void —stopAll()
public
stopAll() : int