|
ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
|
实现时间轮定时器逻辑 More...
#include "tools/tools/tools_time_wheel.h"#include "tools/tools/tools_thread.h"#include <unordered_map>#include <algorithm>#include <utility>#include <cstdint>#include <chrono>#include <limits>#include <memory>Classes | |
| class | ngl::tools::wheel |
| 时间轮轮次类 More... | |
| struct | ngl::tools::time_wheel::impl_time_wheel |
| time_wheel内部实现结构体 More... | |
Namespaces | |
| namespace | ngl::tools |
| 工具函数命名空间。 | |
实现时间轮定时器逻辑
基于层级时间轮(Hierarchical Timing Wheel)算法实现高效定时器: