Boost logo

Boost Users :

Subject: Re: [Boost-users] How to call destructor on thread object?
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2015-05-19 20:29:42


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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net