摘要:
#include #include #include #include boost::atomic_int producer_count(0);boost::atomic_int consumer_count(0);boost::lockfree::queue queue(128);//无锁的多生产... 阅读全文
摘要:
只作了解,要想深入可以http://www.cnblogs.com/haippy/p/3252056.html看个最简单的例子#include #include #include #include #include using namespace std;boost::atomic_int a ;/... 阅读全文
摘要:
#include // std::cout#include // std::thread#include // std::mutex, std::unique_lock#include // st... 阅读全文
摘要:
#include // std::cout#include // std::thread, std::this_thread::yield#include // std::mutex, std::uniq... 阅读全文
摘要:
c++这头烈马,我定将你驯服! 阅读全文
摘要:
#include // std::cout#include // std::thread#include // std::mutex, std::unique_lock#include // st... 阅读全文