diff --git a/README.md b/README.md index daa4496..9423aa5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ eGLock ===== + erlang的全局锁,不可重入。写这个的目的是考虑slg大地图场景的战斗会存在大乱斗,各个战斗目标血量处理需要全局锁处理。 Build diff --git a/c_src/termInt/rebar.config b/c_src/termInt/rebar.config index f08c204..1843928 100644 --- a/c_src/termInt/rebar.config +++ b/c_src/termInt/rebar.config @@ -1,5 +1,5 @@ {port_specs, [ - {"../../priv/termInt.so", ["*.c"]} + {"../../priv/termInt.so", ["*.c"]} ]}. diff --git a/rebar.config b/rebar.config index e217105..aa66bfd 100644 --- a/rebar.config +++ b/rebar.config @@ -3,12 +3,12 @@ {deps, []}. {shell, [ - % {config, "config/sys.config"}, - {apps, [eGLock]} + % {config, "config/sys.config"}, + {apps, [eGLock]} ]}. {pre_hooks, - [{"", compile, "escript c_src/eNpc compile"}]}. + [{"", compile, "escript c_src/eNpc compile"}]}. {post_hooks, - [{"", clean, "escript c_src/eNpc clean"}]}. \ No newline at end of file + [{"", clean, "escript c_src/eNpc clean"}]}. \ No newline at end of file diff --git a/src/eGLock.app.src b/src/eGLock.app.src index ad6037d..ebfea3f 100644 --- a/src/eGLock.app.src +++ b/src/eGLock.app.src @@ -1,11 +1,11 @@ {application, eGLock, - [{description, "An OTP application"}, - {vsn, "0.1.0"}, - {registered, []}, - {mod, {eGLock_app, []}}, - {applications, [kernel, stdlib]}, - {env,[]}, - {modules, []}, - {licenses, ["MIT License"]}, - {links, []} - ]}. + [{description, "An OTP application"}, + {vsn, "0.1.0"}, + {registered, []}, + {mod, {eGLock_app, []}}, + {applications, [kernel, stdlib]}, + {env, []}, + {modules, []}, + {licenses, ["MIT License"]}, + {links, []} + ]}. diff --git a/src/eGLock_app.erl b/src/eGLock_app.erl index 3cafeb2..4a986b3 100644 --- a/src/eGLock_app.erl +++ b/src/eGLock_app.erl @@ -5,7 +5,7 @@ -export([start/2, stop/1]). start(_StartType, _StartArgs) -> - eGLock_sup:start_link(). + eGLock_sup:start_link(). stop(_State) -> - ok. \ No newline at end of file + ok. \ No newline at end of file