C++ Language/Std/Multithreading/ThreadCreation

To create a thread in modern C++, instantiate, passing it a callable-object for the worker thread's entry point.

To block yourself for an arbitrary amount of time, call. To block yourself until the worker thread has finished its work, call.

Additional information about thread creation