- 博客(4)
- 收藏
- 关注
原创 高速任务流系列:任务调度器
任务调度器以任务流为基础,扮演一个多元服务调度者的角色。 任务单元引用:任务单元 #pragma once #include "core/service_scheduler/ServiceUnit.h" class ServiceScheduler { public: ~ServiceScheduler() {} ServiceScheduler(const ServiceScheduler&) = delete; ServiceScheduler &am
2021-07-30 15:33:52 64 1
原创 高速任务流系列:任务处理单元
内存池引用:定制尺寸内存池 消息队列引用:简易消息队列 用于通用任务流。 #pragma once #include "core/common_tool/CustQueue.h" #include "core/common_tool/MemPool.h" #include "core/click_house/ClickHouse.h" #include <thread> #include <typeinfo> template<class T, std::size_
2021-07-30 15:23:51 78
原创 高速任务流系列:简易消息队列
用于高速场景下的信息记录。 #pragma once #include <mutex> #include <condition_variable> #include <queue> #include <string> template<class T> class CustQueue { public: CustQueue(const std::string name = "") { m_name = name;
2021-07-30 15:11:53 115
原创 高速任务流系列:定制尺寸内存池
定制尺寸的内存池。 动态容量,线程安全。 也可用于梯度尺寸内存池的一部分。 #pragma once #include <mutex> #include <stack> template<class T, std::size_t S> class MemPool { public: MemPool() { MAX_SIZE = S; SIZE = sizeof(T); } MemPool(const MemP
2021-07-30 15:05:25 55
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人