erlang's global lock
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

19 行
370 B

  1. %% 锁key
  2. -define(EtsGLockKey, '$EtsGLockKey').
  3. %% 锁key
  4. -define(EtsGLockPid, '$EtsGLockPid').
  5. %% 默认超时时间单位:Ms
  6. -define(LockTimeOut, 5000).
  7. %% 超时重试时间单位:Ms
  8. -define(ReTryTime, 10).
  9. -define(eELockMgr, eELockMgr).
  10. -define(eALockMgr, eALockMgr).
  11. %% 数组数量
  12. -define(eALockSize, 1048576).
  13. %% 数组数量
  14. -define(eALockRef, eALockRef).