Re: [Boost-bugs] [Boost C++ Libraries] #2100: thread fails to compile with -fno-exceptions

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2100: thread fails to compile with -fno-exceptions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-05 15:27:16


#2100: thread fails to compile with -fno-exceptions
----------------------------------+-----------------------------------------
  Reporter: brbarret_at_[hidden] | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: Boost 1.40.0 | Component: thread
   Version: Boost 1.35.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------+-----------------------------------------

Comment(by Jonathan Wakely <jwakely.boost_at_[hidden]>):

 oops, I meant to add a wait on a condition_variable so there's an
 interruption point...

 {{{
 while (true)
 {
   try
   {
     unique_lock<mutex> lock(m_mutex);
     while (m_queue.empty())
       m_cond.wait(lock);
     processQueue(m_queue);
   }
   catch (std::exception& e)
   {
      std::cerr << "Error processing queue: " << e.what() << '\n';
   }
 }
 }}}

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