多进程工作者的全局定时器 替代单进程工作模式的erlangtimer
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.
 

8 lines
199 B

%% 相关配置模块名
-define(gTimerCfg, gTimerCfg).
%% 工作者数量
-define(workCnt, workCnt).
%% 三元表达式
-define(CASE(Cond, Ret1, Ret2), (case Cond of true -> Ret1; _ -> Ret2 end)).