Sfoglia il codice sorgente

ft: 测试修改

master
SisMaker 1 anno fa
parent
commit
2047c514c1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/eGLock.erl

+ 1
- 1
src/eGLock.erl Vedi File

@ -86,7 +86,7 @@ releaseLock(KeyOrKeys) ->
[atomics:compare_exchange(ALockRef, OneKeyIx, PidInt, 0) || OneKeyIx <- KeyIxs],
ok;
_ ->
atomics:compare_exchange(ALockRef, rlang:phash2(KeyOrKeys, ?eGLockSize) + 1, PidInt, 0),
atomics:compare_exchange(ALockRef, erlang:phash2(KeyOrKeys, ?eGLockSize) + 1, PidInt, 0),
ok
end.

Caricamento…
Annulla
Salva