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-08-31 12:50:12
#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:2 steven_watanabe]:
> What errors do you expect from pthread_mutex_lock?
mutex.lock() call may fail - and it sometimes does (according, for
example, to POSIX mutexes), so we need to know that something went wrong.
One way to report an error is to throw system_error exception, like for
example just::thread library does:
http://www.stdthread.co.uk/doc/headers/mutex/mutex/lock.html
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3269#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:01 UTC