Here's a bit more detail of my current problem.
I have implemented destructors within ClassA and ClassB. When adding this
thread to the thread_group, the thread objects destructors are being called
as soon as they're added to the thread_group.
struct MyStruct : ... {
boost::thread_group threads;
};
template
I know you did, and thats still one path I'm following, but I'm having a hard time trying to understand how to wrap it in the way I currently have it written. If you have the time, please post.
On Tue, May 19, 2015 at 7:29 PM, Gavin Lambert
wrote: On 20/05/2015 08:40, Lane wrote:
Thanks for the explanation, that helps. But what I'm looking to do is find a way to call the destructor on the thread object. The ClassA and classB objects are connected to a USB device and I need to find a way to properly shut them down before destroying the threads in on_exit(). Any thoughts?
I covered that in my second reply. After joining the threads, you have to destroy the thread_group. But first you must make it destroyable, by putting it in a unique_ptr.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users