public function release() { if (!$this->locked) { throw new \RuntimeException("release a non lock"); } if (!sem_release($this->lock_id)) { return false; } $this->locked = false; return true; }
public function release($server, $loop) { return $this->sem->release(); }