Tag: C++11 : Start thread by member function with arguments
C++11 : Start thread by member function with arguments
In this article we will discuss how to start a thread by a member function of class. Starting thread with non static member function Suppose we have a class Task, which has non static member function execute() i.e. Advertisements class Task { public: void execute(std::string command); }; Now we want to start a thread which …
C++11 : Start thread by member function with argumentsRead More