Check out example codes for "c++ start thread later". It will help you in understanding the concepts better.

Code Example 1

#include <iostream>
#include <thread>

void thread_func(const int i) {
    std::cout << "hello from thread: " << i << std::endl;
}

int main() {
    std::thread t;

    t = std::thread{ thread_func, 7 };
    t.join();
}

Learn ReactJs, React Native from akashmittal.com