摘要:
#include"clock.h"CLOCK::CLOCK(QWidget*parent):QWidget(parent){QTimer*timer=new QTimer(this);timer->start(1000);//一秒钟connect(timer,SIGNAL(timeout()),th... 阅读全文
posted @ 2015-05-11 13:53
Avatarx
阅读(841)
评论(0)
推荐(0)
摘要:
threadpool是基于boost库实现的一个线程池子库,但线程池实现起来不是很复杂。我们从threadpool中又能学到什么东西呢?它是基于boost库实现的,如果大家对boost库有兴趣,看看一个简单的实现还是可以学到点东西的。threadpool基本功能1、任务封装,包括普通任务(task_... 阅读全文
posted @ 2015-05-11 11:38
Avatarx
阅读(1256)
评论(0)
推荐(0)
摘要:
xl_blocking_queue.h?123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354#ifndef SRC_COMMON_BLOCKING_QUE... 阅读全文
posted @ 2015-05-11 11:30
Avatarx
阅读(1462)
评论(0)
推荐(0)
摘要:
建议看这个链接的内容:http://cpp.winxgui.com/cn:mempool-example-boost-pool Pool分配是一种分配内存方法,用于快速分配同样大小的内存块, 尤其是反复分配/释放同样大小的内存块的情况。1. pool 快速分配小块内存,如果pool无法提供小块内存给... 阅读全文
posted @ 2015-05-11 11:26
Avatarx
阅读(847)
评论(0)
推荐(0)
摘要:
#include #include #include usingnamespaceboost;usingnamespacestd;voidrunChild(constintn){ cout g++ threadgroup.cc -lboost_thread> ./a.out 3如果在freebsd4... 阅读全文
posted @ 2015-05-11 11:15
Avatarx
阅读(536)
评论(0)
推荐(0)
摘要:
在虚拟机里安装系统,可以很方便我们对系统的各项功能进行测试,而又不会影响本机系统,本节就介绍如何在虚拟机中安装Win7系统。工具/原料vm9虚拟机电脑一台方法/步骤1在百度上搜索win7系统,然后下载相关系统。2打开VMware9.0,选择Create a New Virtural Machine(... 阅读全文
posted @ 2015-05-11 09:54
Avatarx
阅读(388)
评论(0)
推荐(0)

浙公网安备 33010602011771号