• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/file.php
  • Класс: CFile
  • Вызов: CFile::lockFileHash
static function lockFileHash($size, $hash, $bucket = 0)
{
	$lockId = $size . '|' . $hash . '|' . (int)$bucket;
	MainApplication::getConnection()->lock($lockId, -1);
	return $lockId;
}