The thread creating is not failing. The thread is just running the function with line: 'std::this_thread::sleep_for( 10ms );'
in the thread, thus waiting for 10ms. Once finished, the thread function ends, which should also end and cleanup the thread.
(when putting some std::cout console output before the sleep it does show up).
The main thread waits for that in in the join function.
The thread creating is not failing. The thread is just running the function with line: 'std::this_ thread: :sleep_ for( 10ms );'
in the thread, thus waiting for 10ms. Once finished, the thread function ends, which should also end and cleanup the thread.
(when putting some std::cout console output before the sleep it does show up).
The main thread waits for that in in the join function.