PHP Class pocketmine\ThreadManager

Inheritance: extends Volatile
Show file Open project: ClearSkyTeam/ClearSky Class Usage Examples

Public Methods

Method Description
add ( Worker | Thread $thread )
getAll ( ) : Worker[] | Thread[]
getInstance ( ) : ThreadManager
init ( )
remove ( Worker | Thread $thread )

Method Details

add() public method

public add ( Worker | Thread $thread )
$thread Worker | Thread

getAll() public method

public getAll ( ) : Worker[] | Thread[]
return Worker[] | Thread[]

getInstance() public static method

public static getInstance ( ) : ThreadManager
return ThreadManager

init() public static method

public static init ( )

remove() public method

public remove ( Worker | Thread $thread )
$thread Worker | Thread