Comos\Qpm\Process\Process::isCurrent PHP Method

isCurrent() public method

public isCurrent ( ) : boolean
return boolean
    public function isCurrent()
    {
        return \posix_getpid() == $this->_pid;
    }

Usage Example

Example #1
0
 /**
  *
  * @return Process
  */
 public static function current()
 {
     $pid = \posix_getpid();
     if (!self::$_current || !self::$_current->isCurrent()) {
         self::$_current = new Process($pid, \posix_getppid());
     }
     return self::$_current;
 }
All Usage Examples Of Comos\Qpm\Process\Process::isCurrent