![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
linsanhua
这个作者很懒,什么都没留下…
展开
-
一个线程写一个线程读的队列
一个线程读,另一个线程写的队列.没有经过测试, 如果有什么bug,欢迎指正#include list>#include Windows.h>// gegerator a null handletemplate typename HandleType>struct null_handle_generator...{ static HandleType get()原创 2008-03-16 16:53:00 · 2285 阅读 · 2 评论 -
c++程序员的几个境界
c++程序员的几个境界, 仅供参考阿.作者risc700 1, 简历上写着了解c++, 实际上不知道mfc 根 VC有什么区别. 0级2, 简历上写着精通c++, 但是仅仅知道mfc, 认为VC就是C++的一切。 1级3, 总是使用malloc,或者 char[100] 来获得内存,但不知道怎么在指定内存上面创建对象。 2级4, 感觉std::string 没有 CString转载 2008-05-10 09:30:00 · 755 阅读 · 0 评论 -
vc2013 atomic_int and atomic<int> bug
http://connect.microsoft.com/VisualStudio/feedback/details/759934/atomic-int-and-atomic-int-are-different-types2013/1/22原创 2014-07-17 22:03:14 · 888 阅读 · 0 评论 -
ubuntu12.04上编译gcc4.8
You can easily compile the sources.The following commands worked for gcc 4.7. They should be fine for gcc 4.8 as well:sudo apt-get install libmpfr-dev libgmp3-dev libmpc-dev flex bisonsvn chec转载 2014-07-22 18:53:47 · 709 阅读 · 0 评论 -
g++使用std::thread编译错误问题
terminate called after throwing an instance of 'std::system_error' what(): Enable multithreading to use std::thread: Operation not permittedAborted原创 2014-07-12 08:33:30 · 5061 阅读 · 1 评论