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