erlang's global lock
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

10 rindas
214 B

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