original_string: public function getStatus() {
          if ($this->pid) {
              $waitPID = \pcntl_waitpid($this->pid, $status, WNOHANG);
  
              if ($waitPID == $this->pid) {
                  return Thread::THREAD_EXITED;
              } else {
                  return Thread::THREAD_RUNNING;
              }
          }
      }
code: public function getStatus() {
          if ($this->pid) {
              $waitPID = \pcntl_waitpid($this->pid, $status, WNOHANG);
  
              if ($waitPID == $this->pid) {
                  return Thread::THREAD_EXITED;
              } else {
                  return Thread::THREAD_RUNNING;
              }
          }
      }
code_tokens: public function getStatus ( ) { if ( $ this -> pid ) { $ waitPID = \ pcntl_waitpid ( $ this -> pid , $ status , WNOHANG ) ; if ( $ waitPID == $ this -> pid ) { return Thread :: THREAD_EXITED ; } else { return Thread :: THREAD_RUNNING ; } } }
docstring: Get the current status for this thread.
docstring_tokens: Get the current status for this thread .