自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除