erlang's global lock
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 line
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).