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

7 lines
198 B

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