Jamm\Memory\Shm\SHMObject::unlock_key PHP Method

unlock_key() public method

Unlock key, locked by method 'lock_key'
public unlock_key ( KeyAutoUnlocker $auto_unlocker ) : boolean
$auto_unlocker Jamm\Memory\KeyAutoUnlocker
return boolean
    public function unlock_key(\Jamm\Memory\KeyAutoUnlocker $auto_unlocker)
    {
        $key = $auto_unlocker->getKey();
        if (empty($key)) {
            $this->ReportError('Empty key in the AutoUnlocker', __LINE__);
            return false;
        }
        $auto_unlocker->revoke();
        return $this->mem_object->del(self::lock_key_prefix . $key);
    }