Thread/Worker: drop nullability flag from start() (fixed in pthreads 3.2.0, which we require as a minimum)

This commit is contained in:
Dylan K. Taylor 2020-06-21 19:07:01 +01:00
parent c572e9bb6a
commit 763c8ebfe3
2 changed files with 2 additions and 6 deletions

View File

@ -76,11 +76,9 @@ abstract class Thread extends \Thread{
} }
/** /**
* @param int|null $options TODO: pthreads bug
*
* @return bool * @return bool
*/ */
public function start(?int $options = PTHREADS_INHERIT_ALL){ public function start(int $options = PTHREADS_INHERIT_ALL){
ThreadManager::getInstance()->add($this); ThreadManager::getInstance()->add($this);
if($this->getClassLoader() === null){ if($this->getClassLoader() === null){

View File

@ -76,11 +76,9 @@ abstract class Worker extends \Worker{
} }
/** /**
* @param int|null $options TODO: pthreads bug
*
* @return bool * @return bool
*/ */
public function start(?int $options = PTHREADS_INHERIT_ALL){ public function start(int $options = PTHREADS_INHERIT_ALL){
ThreadManager::getInstance()->add($this); ThreadManager::getInstance()->add($this);
if($this->getClassLoader() === null){ if($this->getClassLoader() === null){