Re: [Boost-bugs] [Boost C++ Libraries] #3269: boost thread - mutex.lock() doesn't throw exception

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3269: boost thread - mutex.lock() doesn't throw exception
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-04 14:07:54


#3269: boost thread - mutex.lock() doesn't throw exception
-------------------------------+--------------------------------------------
 Reporter: anonymous | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: thread
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: thread mutex lock |
-------------------------------+--------------------------------------------

Comment(by anonymous):

 Replying to [comment:4 steven_watanabe]:
> Well, it doesn't fail randomly. Most of the possible failures either
 cannot happen with boost::mutex or are a result of undefined behavior.
 However, EAGAIN and ENOMEM appear to be possible.
 On QNX pthread_mutex_lock may also return EDEADLK - if mutex was not set
 as recursive, or ETIMEDOUT if "A kernel timeout unblocked the call", and
 all this return values including EAGAIN are possible. At least this errors
 should be logged somewhere and execution of the thread should be
 cancelled.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3269#comment:5>
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:01 UTC