If you are going to start your own thread, I suggest using std::thread