Re: [Boost-bugs] [Boost C++ Libraries] #5013: documentation: boost::thread: pthreas_exit causes terminate()

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5013: documentation: boost::thread: pthreas_exit causes terminate()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-11 18:14:03


#5013: documentation: boost::thread: pthreas_exit causes terminate()
--------------------------------------------------------+-------------------
  Reporter: Slava <Viatcheslav.Sysoltsev@…> | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: Boost 1.49.0 | Component: thread
   Version: Boost 1.36.0 | Severity: Problem
Resolution: | Keywords: doc native threads
--------------------------------------------------------+-------------------
Changes (by viboes):

 * cc: viboes (added)
  * owner: anthonyw => viboes
  * status: new => assigned
  * milestone: To Be Determined => Boost 1.49.0

Comment:

 For the time been I propose to add this section

 '''pthread_exit POSIX limitation'''

 pthread_exit in glibc/NPTL causes a "forced unwind" that is almost like a
 C++ exception, but not quite. On Mac OS X, for example, pthread_exit
 unwinds without calling C++ destructors.

 This behavior is incompatible with the current Boost.Thread design, so the
 use of this function in a POSIX thread result in undefined behavior of any
 Boost.Thread function.

 Committed in trunk at #75904.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5013#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:08 UTC