Метод underRunLock
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
380–395
~/bitrix/modulesim/lib/V2/Integration/HumanResources/Sync/SyncService.php
Исходный код
Сигнатура метода
private function underRunLock(Item\SyncInfo $syncInfo, callable $work): ?Result
Возвращает:
?Result
Описание
Ownership of an iteration and its release in one construct: a run lock leaked by a throw outlives the request on a persistent connection and then refuses every later attempt at this triple. Ownership is taken before the row is read. The item carries the pointer it was read with, so an item read while the previous owner was still finishing repeats that owner's batch and writes the old pointer back over the new one.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$syncInfo
|
Item\SyncInfo
|
-
|
-
|
$work
|
callable
|
-
|
-
|