mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Merge branch 'next-minor'
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\thread;
|
||||
use const PTHREADS_INHERIT_ALL;
|
||||
|
||||
/**
|
||||
* This class must be extended by all custom threading classes
|
||||
@ -29,7 +30,7 @@ namespace pocketmine\thread;
|
||||
abstract class Thread extends \Thread{
|
||||
use CommonThreadPartsTrait;
|
||||
|
||||
public function start(?int $options = \PTHREADS_INHERIT_ALL) : bool{
|
||||
public function start(?int $options = PTHREADS_INHERIT_ALL) : bool{
|
||||
//this is intentionally not traitified
|
||||
ThreadManager::getInstance()->add($this);
|
||||
|
||||
|
@ -22,6 +22,7 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\thread;
|
||||
use const PTHREADS_INHERIT_ALL;
|
||||
|
||||
/**
|
||||
* This class must be extended by all custom threading classes
|
||||
@ -29,7 +30,7 @@ namespace pocketmine\thread;
|
||||
abstract class Worker extends \Worker{
|
||||
use CommonThreadPartsTrait;
|
||||
|
||||
public function start(?int $options = \PTHREADS_INHERIT_ALL) : bool{
|
||||
public function start(?int $options = PTHREADS_INHERIT_ALL) : bool{
|
||||
//this is intentionally not traitified
|
||||
ThreadManager::getInstance()->add($this);
|
||||
|
||||
|
Reference in New Issue
Block a user