Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5432: Deadlock with thread group's join_all and other modifier methods.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-04 19:02:10
#5432: Deadlock with thread group's join_all and other modifier methods.
-------------------------------+--------------------------------------------
Reporter: JDKunk@⦠| Owner: viboes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.47.0 | Severity: Showstopper
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Changes (by viboes):
* cc: viboes (added)
* owner: anthonyw => viboes
* status: new => assigned
Comment:
Your examples is an example of deadlock, but I'm not sure if we can say
that there is a deadlock in Boost.Thread.
Your solution seems to not be one, as the thread calling join-all will
think that all the thread in the group are joined and this could be not
the case as other thread could be added to it.
I think that the best the library can do is to move one thread group to
another.
Maybe the documentation should stay that access to the thread group from
any thread in the group will result in a deadlock.
Other solutions?
BTW, I don't think this is a Showstopper as you can remove the thread from
the group after joining all the threads.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5432#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