Boost logo

Boost Users :

Subject: Re: [Boost-users] How to call destructor on thread object?
From: Lane (software.research.development_at_[hidden])
Date: 2015-05-20 14:47:16


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 <gavinl_at_[hidden]>
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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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