Esempio n. 1
0
 /**
  * @return X_SopCast
  */
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Esempio n. 2
0
 public function doStop($threadInfo)
 {
     X_SopCast::getInstance()->forceKill();
     // wait few seconds
     sleep(2);
     //TODO tweak value better
 }
Esempio n. 3
0
 function __construct(Zend_Config $options)
 {
     $this->options = $options;
     if ($this->isEnabled()) {
         X_SopCast::getInstance()->setOptions($this->options);
     }
 }