27 Jan
2006
27 Jan
'06
10:46 p.m.
This is even simpler. Is there is reason for "boost::ref(*this)" ? class Simple { Simple() : th( boost::bind( run, this )) {} void run() { for(;;){ //Thread's work goes here. } } private: boost::thread th; };