Selaa lähdekoodia

ft: 终版

master
SisMaker 1 vuosi sitten
vanhempi
commit
9ed052864d
1 muutettua tiedostoa jossa 0 lisäystä ja 8 poistoa
  1. +0
    -8
      src/eGLock.erl

+ 0
- 8
src/eGLock.erl Näytä tiedosto

@ -9,8 +9,6 @@
%%
-define(eGLockSize, 2097152).
-compile([export_all]).
-export([
tryLock/1
, tryLock/2
@ -144,12 +142,6 @@ getKexIxs([Key | Keys], IxAcc) ->
KeyIx = erlang:phash2(Key, ?eGLockSize),
getKexIxs(Keys, ?CASE(lists:member(KeyIx, IxAcc), IxAcc, [KeyIx | IxAcc])).
getKexIxs1([], IxAcc) -> IxAcc;
getKexIxs1([Key | Keys], IxAcc) ->
KeyIx = erlang:phash2(Key, ?eGLockSize),
getKexIxs1(Keys, ordsets:add_element(KeyIx, IxAcc)).
doApply({M, F, Args}) ->
apply(M, F, Args);
doApply({Fun, Args}) ->

Ladataan…
Peruuta
Tallenna