Skip to content
Home
Modern C++
General syntax and selected features
Avoid out parameters, prefer (multiple) return values
Initializer within if and switch statement
Ranges, views and pipes
std::variant
Filesystem
MultiThreading
Example 1: Running threads with unsynchronized data access
Example 2: Adding synchronization for data access
Running multiple threads
Simply starting a thread – std::thread
Providing results – std::promise/future
The simplest way for asynchronous execution – std::async
Store tasks with explicit control for execution – std::packaged_task
Safe access to shared data
Understanding the problem of synchronization
Mutexes and locks
Optimization with reader/writer lock
Safe initialization of data
Atomics
Wait and signal – std::condition_variable
Optimization
Forwarding a constructor argument type
Extending an element directly within a container – use return value of emplace_back
Optimized adding to container – forward arguments to element constructor
References and Overview
Tools
Amazon Fire TV Stick
Excel
FreeCommander XE
Smartphone – Xiaomi Pocophone F1
WordPress
Sitemap
Startseite
»
Tools
Tools
Excel
FreeCommander XE
Notepad++
WordPress