源战役
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

34 líneas
1.1 KiB

  1. %% ---------------------------------------------------------------------------
  2. %% @doc timer_custom.erl
  3. %% @author hjh
  4. %% @since 2016-09-22
  5. %% @deprecated 定时器定制
  6. %% ---------------------------------------------------------------------------
  7. % ------------------- 时间类型 --------------------
  8. -define(TC_TIME_TYPE_START, 1). % 开启
  9. -define(TC_TIME_TYPE_END, 2). % 结束
  10. -define(TC_TIME_TYPE_CLEAR, 3). % 清理
  11. % ------------------- Info类型 --------------------
  12. -define(TC_TYPE_ACT, act).
  13. % --------------------- 其他 ----------------------
  14. -define(TC_DEF_DELAY, 20). % 默认延迟
  15. -record(kf_state, {tc_list, ref}).
  16. -record(local_state, {tc_list, ref}).
  17. %% 时间定制
  18. -record(timer_custom, {
  19. key = undefined % Key值 {type, subtype, time_type}
  20. , type = undefined % 类型
  21. , subtype = undefined % 次类型
  22. , time_type = 0 % 时间类型
  23. , time = 0 % 时间
  24. , delay = 0 % 延迟处理时间
  25. , other_data = #{} % 其他数据
  26. }).