• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/posting/threadstrategy/abstractthreadstrategy.php
  • Класс: BitrixSenderPostingThreadStrategyAbstractThreadStrategy
  • Вызов: AbstractThreadStrategy::unlock
protected function unlock()
{
	$connection = Application::getInstance()->getConnection();
	if ($connection instanceof DBMysqlCommonConnection)
	{
		$lockDb = $connection->query(
			sprintf(
				"SELECT RELEASE_LOCK('posting_thread_%d') as L",
				$this->postingId
			)
		);
		$lock   = $lockDb->fetch();
		if ($lock["L"] != "0")
		{
			return true;
		}
	}

	return false;
}