June 2017
Intermediate to advanced
532 pages
12h 59m
English
We are going to write a program that uses an std::shared_mutex instance in its exclusive and shared modes and to see what that means. Additionally, we do not call the lock and unlock functions ourselves but do the locking with automatic unlocking using RAII helpers:
#include <iostream> #include <shared_mutex> #include <thread> #include <vector> using namespace std; using namespace chrono_literals;
shared_mutex ...
Read now
Unlock full access