多进程工作者的全局定时器 替代单进程工作模式的erlangtimer
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

7 行
199 B

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