SisMaker преди 1 година
родител
ревизия
a8575bd624
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      src/eALockMgr.erl

+ 1
- 1
src/eALockMgr.erl Целия файл

@ -38,7 +38,7 @@ handle_info({'EXIT', Pid, _Reason}, State) ->
[] -> ignore;
[KeyIxOrKeyIxs] ->
ALockRef = persistent_term:get(?eALockRef),
PidInt = termInt:termInt(PidInt),
PidInt = termInt:termInt(Pid),
case is_integer(KeyIxOrKeyIxs) of
true ->
atomics:compare_exchange(ALockRef, KeyIxOrKeyIxs, PidInt, 0);

Зареждане…
Отказ
Запис