protected function releaseSlot($slot, $lock = false) { if ($lock) { $this->lock(); } $slots = shm_get_var($this->shared_data, self::_INDEX_SLOTS); $slots[$slot] = false; shm_put_var($this->shared_data, self::_INDEX_SLOTS, $slots); if ($lock) { $this->unlock(); } MTLog::getInstance()->debug('Releasing slot ' . $slot); return true; }
public static function setLogFile($logfile) { self::$logfile = $logfile; }