how to call member function in c++ in thread code example Example: thread c++ member function myThreads[i] = std::thread(&Car::start, myCar);