erlang's global lock
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
SisMaker ab0115291d ft: 说明修过 il y a 1 an
c_src ft: 格式化 il y a 1 an
include ft: 新增 atomics 版本 il y a 1 an
src ft: 测试修过 il y a 1 an
.gitignore ft: 完成提交 il y a 1 an
LICENSE ft: 完成提交 il y a 1 an
README.md ft: 说明修过 il y a 1 an
rebar.config ft: 格式化 il y a 1 an

README.md

eGLock

erlang的全局锁,不可重入。写这个的目的是考虑slg大地图场景的战斗会存在大乱斗,各个战斗目标血量处理需要全局锁处理。

Build

$ rebar3 compile

说明

eALock 基于atmoics 
eELock 基于Ets表
大部分情况下 两个的性能差不多 本来atmoics 是要快很多的 但是里面进行了额外一次ets插入删除 导致性能跟ets实现的差不多了