摘要: 头文件中包含thread类与this_thread命名空间,下面逐一介绍。 thread类 1. 构造函数 (1)默认构造函数 thread() noexcept; 默认构造函数不执行任何线程,产生线程对象的线程ID为0。 (2)初始化构造函数 template explicit thread (Fn&& fn, Args&&... args); 产生一个thread对象,提供一个joinab... 阅读全文
posted @ 2015-04-09 21:21 出租房程序员 阅读(433) 评论(0) 推荐(0) 编辑