$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] at_thread_exit() never getting called
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-10-28 00:47:30
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