C++ std::thread of a member function
问题 I'm trying to program a command line server that would receive information from a serial port, parse it, and record it in an internal object. Then upon request from a client the server would return the requested information. What I want to do is put the receiver & parser parts in a separated thread in order to have the server running along side, not interfering with the data collection. #include <iostream> #include <thread> class exampleClass{ std::thread *processThread; public void