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.

10 line
214 B

  1. %% 锁key
  2. -define(EtsGLockKey, '$EtsGLockKey').
  3. %% 锁等待pid
  4. -define(EtsGLockPid, '$EtsGLockPid').
  5. %% 锁等待pid
  6. -define(ReTryLockApply, '$ReTryLockApply').
  7. %% 默认超时时间
  8. -define(LockTimeOut, 5000).