Re: [Boost-bugs] [Boost C++ Libraries] #8586: Boost Thread .join() causes exception

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8586: Boost Thread .join() causes exception
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-04 09:07:31


#8586: Boost Thread .join() causes exception
-------------------------------+----------------------
  Reporter: lakmus@… | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------

Comment (by viboes):

 Could you try dynamic allocation?


 {{{
 int main()
 {
     boost::thread* my_thread = new boost::thread(&hello_world);
     my_thread->join();
     delete my_thread;
 }
 }}}


 and also


 {{{
 int main()
 {
     boost::thread my_thread(&hello_world);
     boost::this_thread::sleep_for(boost::chrono::milliseconds(10000));
     my_thread.join();
 }
 }}}



 {{{

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8586#comment:12>
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:13 UTC