摘要: 生产者 - 消费者(Producer-Consumer),也叫有限缓冲(Bounded-Buffer),是多线程同步的经典问题之一 头文件 #include <condition_variable> #include <iostream> #include <mutex> #include <thr 阅读全文
posted @ 2021-04-11 20:35 wsl-hitsz 阅读(175) 评论(0) 推荐(0) 编辑