
19 Oct
2010
19 Oct
'10
3:24 p.m.
I am completely new to Boost and I would like to know in which method to put the business logic (work) of my thread class (which inherits from boost::thread). When you do that in Java you implement Runnable and put the business logic in the run() method. How do I do that with boost?
Look into the documentaiton: http://www.boost.org/doc/libs/1_44_0/doc/html/thread/thread_management.html You do not inhertit from boost::thread, you pass your thread function to thread's constructor.