Re: [Boost-bugs] [Boost C++ Libraries] #2739: shouldn't at_thread_exit work on the main thread?

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2739: shouldn't at_thread_exit work on the main thread?
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-05-29 22:38:41


#2739: shouldn't at_thread_exit work on the main thread?
---------------------------+------------------------------------------------
  Reporter: viboes | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: Boost 1.40.0 | Component: thread
   Version: Boost 1.37.0 | Severity: Showstopper
Resolution: | Keywords: at_thread_exit
---------------------------+------------------------------------------------

Comment(by viboes):

 Replying to [comment:1 viboes]:
> The attached files contains the tests showing the bug and a patch
 solving the issue.
> The idea been use atexit for the main thread.

 I have run the Thread tests and the patch introduce a regression on
 test_tss.cpp:test_tss. The reason is that the patch do not make a
 difference between the thread main and native threads created directly
 with pthread_create. So the patch is not usable. Is there a way to
 identify the thread main?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2739#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC