Explorar el Código

ft: 测试修过

master
SisMaker hace 1 año
padre
commit
9cc94a30b1
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      src/eALock.erl
  2. +1
    -1
      src/eALockMgr.erl

+ 1
- 1
src/eALock.erl Ver fichero

@ -96,7 +96,7 @@ loopTrys(KeyIxs, Keys, ALockRef, CurPid, PidInt, GLockMgrPid, MFAOrFun, TimeOut)
LTimeOut = ?CASE(TimeOut == infinity, TimeOut, TimeOut - ?ReTryTime),
case LTimeOut >= 0 of
true ->
case tryLockAll(KeyIxs, PidInt, ALockRef, []) of
case tryLockAll(KeyIxs, ALockRef, PidInt, []) of
ok ->
try doApply(MFAOrFun)
catch C:R:S ->

+ 1
- 1
src/eALockMgr.erl Ver fichero

@ -36,7 +36,7 @@ handle_cast(_Request, State) ->
handle_info({'EXIT', Pid, _Reason}, State) ->
case ets:take(?EtsGLockPid, Pid) of
[] -> ignore;
[KeyIxOrKeyIxs] ->
[{_Pid, KeyIxOrKeyIxs}] ->
ALockRef = persistent_term:get(?eALockRef),
PidInt = termInt:termInt(Pid),
case is_integer(KeyIxOrKeyIxs) of

Cargando…
Cancelar
Guardar