摘要:
#include #include #include #include boost::atomic_int producer_count(0);boost::atomic_int consumer_count(0);boost::lockfree::queue queue(128);//无锁的多生产... 阅读全文
posted @ 2014-07-06 21:36
zzyoucan
阅读(4078)
评论(0)
推荐(0)
摘要:
只作了解,要想深入可以http://www.cnblogs.com/haippy/p/3252056.html看个最简单的例子#include #include #include #include #include using namespace std;boost::atomic_int a ;/... 阅读全文
posted @ 2014-07-06 12:53
zzyoucan
阅读(2523)
评论(0)
推荐(0)
摘要:
#include // std::cout#include // std::thread#include // std::mutex, std::unique_lock#include // st... 阅读全文
posted @ 2014-07-06 11:03
zzyoucan
阅读(263)
评论(0)
推荐(0)
摘要:
#include // std::cout#include // std::thread, std::this_thread::yield#include // std::mutex, std::uniq... 阅读全文
posted @ 2014-07-06 10:42
zzyoucan
阅读(220)
评论(0)
推荐(0)
摘要:
c++这头烈马,我定将你驯服! 阅读全文
posted @ 2014-07-06 10:23
zzyoucan
阅读(117)
评论(0)
推荐(0)
摘要:
#include // std::cout#include // std::thread#include // std::mutex, std::unique_lock#include // st... 阅读全文
posted @ 2014-07-06 10:09
zzyoucan
阅读(547)
评论(0)
推荐(1)