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.

9 lines
209 B

  1. %% 默认超时时间单位:Ms
  2. -define(LockTimeOut, 5000).
  3. %% 超时重试时间单位:Ms
  4. -define(ReTryTime, 10).
  5. %% 数组数量
  6. -define(eGLockSize, 1048576).
  7. %% atomics索引
  8. -define(eGLockRef, eGLockRef).