mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-08 12:48:32 +00:00
Merge commit '763c8ebfe3bb8a597768d86040fee130c8fc7ab8'
# Conflicts: # resources/vanilla # src/pocketmine/Worker.php # src/thread/CommonThreadPartsTrait.php
This commit is contained in:
commit
abe4f1bf25
@ -31,7 +31,7 @@ use const PTHREADS_INHERIT_ALL;
|
|||||||
abstract class Thread extends \Thread{
|
abstract class Thread extends \Thread{
|
||||||
use CommonThreadPartsTrait;
|
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
|
//this is intentionally not traitified
|
||||||
ThreadManager::getInstance()->add($this);
|
ThreadManager::getInstance()->add($this);
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ use const PTHREADS_INHERIT_ALL;
|
|||||||
abstract class Worker extends \Worker{
|
abstract class Worker extends \Worker{
|
||||||
use CommonThreadPartsTrait;
|
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
|
//this is intentionally not traitified
|
||||||
ThreadManager::getInstance()->add($this);
|
ThreadManager::getInstance()->add($this);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user