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.

15 lines
291 B

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