Comos\Qpm\Process\Process::current PHP Метод

current() публичный статический Метод

public static current ( ) : Process
Результат Process
    public static function current()
    {
        $pid = \posix_getpid();
        if (!self::$_current || !self::$_current->isCurrent()) {
            self::$_current = new Process($pid, \posix_getppid());
        }
        return self::$_current;
    }

Usage Example

Пример #1
0
 public function __construct($config)
 {
     $this->_currentProcess = Process::current();
     $this->_config = $config;
     $this->_timeout = $config->getTimeout();
     $this->_onTimeoutCallback = $config->getOnTimeout();
 }
All Usage Examples Of Comos\Qpm\Process\Process::current