How can I start a stream inside an object? For instance,
class ABC { public: void Start(); double x; boost::thread m_thread; }; ABC abc; ... do something here ... ... how can I start the thread with Start() function?, ... ... eg, abc.m_thread = boost::thread(&abc.Start()); ...
So later I can do something like
abc.thread.interrupt(); abc.thread.join();
Thanks.
source share