Boost logo

Boost :

Subject: Re: [boost] [Boost-users] at_thread_exit() never getting called
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2009-10-28 21:17:03

----- Original Message -----
From: "cowwoc" <cowwoc_at_[hidden]>
To: <boost-users_at_[hidden]>
Sent: Wednesday, October 28, 2009 7:33 PM
Subject: Re: [Boost-users] at_thread_exit() never getting called

> I think prevents it from
> working.
> Gili
> Steven Watanabe-4 wrote:
>> 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...

For me yes, but it dosn't works. The example attached to the ticket show the problem.
>>> Is there a way to hook the main thread
>>> shutting down?
>> On windows you can use on_thread_exit().

The patch worked when I summited it.

Anthony, I've see that you have started to integrate the patch for the thread attributes. Do you plan to integrate this patch also?


Boost list run by bdawes at, gregod at, cpdaniel at, john at