2016年4月5日

双缓存静态循环队列(三)

摘要: 1 // TwoBufQueue.h: interface for the CTwoBufQueue class. 2 // 3 ////////////////////////////////////////////////////////////////////// 4 5 #if !defin 阅读全文

posted @ 2016-04-05 10:12 雁北 阅读(353) 评论(0) 推荐(0) 编辑

双缓存静态循环队列(二)

摘要: 1 // CritcalS.h: interface for the CCritcalS class. 2 // 3 ////////////////////////////////////////////////////////////////////// 4 5 #if !defined(AFX 阅读全文

posted @ 2016-04-05 10:08 雁北 阅读(481) 评论(0) 推荐(0) 编辑

双缓存静态循环队列(一)

摘要: 一、在数据采集通讯处理场景中应用中,数据收发缓存使用很多。常用的是生产者/消费者模式数据缓存。 基于几点考虑实现该数据缓存队列(FIFO)模块。 1) 内存管理:固定内存大小分配,不使用动态分配。 2) 存取速度:用数组通过游标计算实现循环队列,无数据拷贝移动等开销实现数据插入移除的快速实现。 3) 阅读全文

posted @ 2016-04-05 10:02 雁北 阅读(758) 评论(0) 推荐(0) 编辑

2016年3月10日

C++ 对象间通信框架 V2.0 ××××××× 之(五)

摘要: 类定义: ======================================================================= 1 // MemberFuncPointer.h: interface for the CMemberFuncPointer class. 2 / 阅读全文

posted @ 2016-03-10 11:28 雁北 阅读(338) 评论(0) 推荐(0) 编辑

C++ 对象间通信框架 V2.0 ××××××× 之(四)

摘要: 类定义:CMemberFuncPointer ======================================================================= 1 // MemberFuncPointer.h: interface for the CMemberFunc 阅读全文

posted @ 2016-03-10 11:19 雁北 阅读(187) 评论(0) 推荐(0) 编辑

C++ 对象间通信框架 V2.0 ××××××× 之(三)

摘要: 类定义:CSignalSlot ======================================================================= 1 // SignalSlot.h: interface for the CSignalSlot class. 2 // 3 阅读全文

posted @ 2016-03-10 11:16 雁北 阅读(304) 评论(0) 推荐(0) 编辑

C++ 对象间通信框架 V2.0 ××××××× 之(二)

摘要: 公共头文件:ss_type_def.h =================================================================================== 1 #if !defined SS_TYPE_DEF_H 2 #define SS_TYPE 阅读全文

posted @ 2016-03-10 11:12 雁北 阅读(578) 评论(0) 推荐(0) 编辑

C++ 对象间通信框架 V2.0 ××××××× 之一

摘要: V2.0 主要是信号槽连接的索引性能做了改进,新设计了程序构架实现了多级分层索引,索引时间性能基本不受连接表的大小影响。 类定义:CSignalSlot C_MemberFuncPointer C_ss_slot_item C_ss_signal_item C_ss_signal_func 详细说明 阅读全文

posted @ 2016-03-10 10:47 雁北 阅读(349) 评论(0) 推荐(0) 编辑

2016年2月3日

C++ 对象间通讯机制 框架实现

摘要: 1 // SignalSlot.h: interface for the CSignalSlot class. 2 // 3 ////////////////////////////////////////////////////////////////////// 4 5 #if !defined 阅读全文

posted @ 2016-02-03 13:34 雁北 阅读(508) 评论(0) 推荐(0) 编辑

2015年11月12日

websocket 传输数据帧打包 (client端)

摘要: 1 /* 2 Vertion: 0.2.1 3 date: 2015.8.11 4 content: gcc 编译通过 5 */ 6 7 //websocket 传输数据帧打包 client端 8 //参数:src 为输入字符串 9 // len为输入字串... 阅读全文

posted @ 2015-11-12 15:37 雁北 阅读(618) 评论(0) 推荐(0) 编辑

导航