Re: [Boost-bugs] [Boost C++ Libraries] #5843: thread.cpp: thread::join() does not throw for a non-joinable thread

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5843: thread.cpp: thread::join() does not throw for a non-joinable thread
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-02 23:22:32


#5843: thread.cpp: thread::join() does not throw for a non-joinable thread
---------------------------------+------------------------------------------
  Reporter: noloader@… | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------+------------------------------------------
Changes (by viboes):

 * cc: viboes (added)

Comment:

 I don't know IIUC the interface, but IMO, a thread that has already
 finished can not be joined. Do you agree with my understanding?

 Preconditions:

     this->get_id()!=boost::this_thread::get_id()
 Effects:

     If *this refers to a thread of execution, waits for that thread of
 execution to complete.
 Postconditions:

     If *this refers to a thread of execution on entry, that thread of
 execution has completed. *this no longer refers to any thread of
 execution.
 Throws:

     boost::thread_interrupted if the current thread of execution is
 interrupted.
 Notes:

     join() is one of the predefined interruption points.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5843#comment:2>
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:07 UTC