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 27b4cdf35a ft: 优化更加高效的版本 il y a 1 an
c_src ft: 优化更加高效的版本 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

说明

eGLock 基于c++11 atomic  
其中要锁的key 不能是列表的字符串 原因是锁表的key会判断是否为list来区分是锁单key 还是锁列表