Re: [Boost-bugs] [Boost C++ Libraries] #1848: Boost.Thread is incompatible with UPX

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1848: Boost.Thread is incompatible with UPX
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-28 09:25:42


#1848: Boost.Thread is incompatible with UPX
------------------------------------------------------------+---------------
  Reporter: Gordon Magnusson <gordon.magnusson_at_[hidden]> | Owner: anthonyw
      Type: Bugs | Status: closed
 Milestone: Boost 1.36.0 | Component: thread
   Version: Boost 1.35.0 | Severity: Problem
Resolution: wontfix | Keywords:
------------------------------------------------------------+---------------
Changes (by anthonyw):

  * status: new => closed
  * resolution: => wontfix

Comment:

 TLS callbacks are indeed being used to support thread exit handlers. This
 allows thread-specific data to be cleaned up on threads launched outside
 of boost::thread. This has always been supported for those compilers that
 we knew how to (Mostly MSVC), and is now supported in gcc/mingw as well.

 Thread-specific data that needs this cleanup is used by
 thread_specific_ptr, this_thread::get_id(), and at_thread_exit(). If you
 use any of these from a thread not managed by boost::thread, you need the
 cleanup, or you need to call on_thread_exit() from each of those threads
 before they finish.

 Defining tss_cleanup_implemented in your main cpp file will prevent the
 automatic cleanup machinery being linked in, as your code is assumed to
 provide it. This should therefore allow your use of UPX.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1848#comment:1>
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:49:57 UTC