Browse Source

ft: 测试修改

master
SisMaker 1 year ago
parent
commit
2047c514c1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/eGLock.erl

+ 1
- 1
src/eGLock.erl View 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.

Loading…
Cancel
Save