June 2017
Intermediate to advanced
532 pages
12h 59m
English
We are going to implement a simple producer/consumer program which runs a single producer of values in its own thread, as well as a single consumer thread in another thread:
#include <iostream> #include <queue> #include <tuple> #include <condition_variable> #include <thread> using namespace std; using namespace chrono_literals;
Read now
Unlock full access