#include #include #include class SpecificWork
{private: int p_;public: SpecificWork(int value) : p_(value) { } void
operator()() { printf("Value is %....
分类:
其他好文 时间:
2014-05-27 03:06:45
阅读次数:
251
原帖地址:http://bbs.chinaunix.net/thread-1952349-1-1.html
,感谢原作者无私的分享精神。1.*关于退出:*:wq! ----强制保存退出:wq---- 保存退出:x ----- 作用和:wq 一样ZZ----
作用和:wq一样,(注意Z是大写的,并且不...
分类:
其他好文 时间:
2014-05-27 02:00:35
阅读次数:
263
private void Time(int i) { Stopwatch sw = new
Stopwatch(); sw.Start(); Thread.Sleep(i); s...
分类:
其他好文 时间:
2014-05-27 01:15:43
阅读次数:
342
安卓版猜拳游戏源码,该文件中带有安装测试包的,这个游戏源码比较简单的,现在有两个代码,一个自定义VIEW的,一个就是普通的imageView图片,游戏非常适合一些新手的使用和学习。详细说明:http://android.662p.com/thread-4914-1-1.html
分类:
移动开发 时间:
2014-05-24 04:44:38
阅读次数:
275
cocos2d-x升级到3.0后变化不小,除了API的变化(主要是函数和类名称变化,以及使用了C++11的不少特性,function/bind, lamda, std::thread…),创建和编译工程也做了一些简化调整。本文主要讨论一下cocos2d-x3.0 在android平台开发的环境设置及工程创建编译流程。...
分类:
移动开发 时间:
2014-05-22 13:38:47
阅读次数:
1044
There are four types of interrupts on the CPU.
? Reset
? Maskable
? Nonmaskable
? Exception(异常也可视为中断)
These first three types are differentiated by their
priorities. The
reset interrupt has t...
分类:
其他好文 时间:
2014-05-22 13:14:59
阅读次数:
245
1. 进程是unix系统中两个最重要的基础抽象之一(另一个是文件)A process is a
running programA thread is the unit of activity inside of a processthe
virtualization of memory is ass...
分类:
系统相关 时间:
2014-05-20 12:33:05
阅读次数:
407
1. 给用户添加任务的接口是 schedule(arg), arg应该如何设置a) 创建 Work
class, 将arg设置为 Work*,
Work由用户创建,用户删除,线程池内仅保留对Work对象的引用问题:我写完thread_pool后才发现,用户不再知道如何去删除他创建的
Work了,因为...
分类:
编程语言 时间:
2014-05-20 12:15:23
阅读次数:
337
在MySQL的master-slave或dual master的架构中,我们经常使用show
slave status命令来查看复制状态。这里涉及几个重要的日志文件和位置:Master_Log_File,Read_Master_Log_Pos:
记录了IO thread读到的当前master bin...
分类:
其他好文 时间:
2014-05-19 12:57:28
阅读次数:
282