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 lines
214 B

%% 锁key
-define(EtsGLockKey, '$EtsGLockKey').
%% 锁等待pid
-define(EtsGLockPid, '$EtsGLockPid').
%% 锁等待pid
-define(ReTryLockApply, '$ReTryLockApply').
%% 默认超时时间
-define(LockTimeOut, 5000).