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

%% 锁key
-define(EtsGLockKey, '$EtsGLockKey').
%% 默认超时时间单位:Ms
-define(LockTimeOut, 5000).
%% 超时重试时间单位:Ms
-define(ReTryTime, 10).
-define(eELockMgr, eELockMgr).
%% 数组数量
-define(eALockSize, 1048576).
%% atomics索引
-define(eALockRef, eALockRef).