Boost logo

Boost Users :

Subject: Re: [Boost-users] at_thread_exit() never getting called
From: cowwoc (cowwoc_at_[hidden])
Date: 2009-10-28 14:33:43


I think https://svn.boost.org/trac/boost/ticket/2739 prevents it from
working.

Gili

Steven Watanabe-4 wrote:
>
> AMDG
>
> cowwoc wrote:
>> I am registering boost::this_thread::at_thread_exit() against one of my
>> threads. When the main thread exits using "return 0" the at_thread_exit
>> hook
>> never gets invoked. Is this normal?
>
> It's supposed to work for the main thread...
>
>> Is there a way to hook the main thread
>> shutting down?
>>
>
> On windows you can use on_thread_exit().
>
> In Christ,
> Steven Watanabe
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>

-- 
View this message in context: http://www.nabble.com/at_thread_exit%28%29-never-getting-called-tp26053513p26099804.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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