Threads
To use the multithreading interface of C++ you need the header <thread>
.
Creation
A thread std::thread
represents an executable unit. This executable unit, which the thread immediately starts, gets its work package as a callable unit. A callable unit can be a function, a function object or a lambda function:
Lifetime
The creator of a thread has to take care of the lifetime of its created thread. The executable unit of...