Boost C++ Libraries: Ticket #8903: libs/regex/src/static_mutex.cpp: Ignores nearly all failures from pthread_* functions https://svn.boost.org/trac10/ticket/8903 <p> libs/regex/src/static_mutex.cpp ignores nearly all failures from pthread_* functions. Functions include pthread_mutex_lock and pthread_mutex_unlock. </p> <p> BOOST_VERIFY is used for debugging and diagnostic builds, but no actions are taken for failures in release or production builds. </p> <p> Perhaps it would be a good idea to use boost/thread/pthread/mutex.hpp. It appears to have more stability and throws lock exceptions where appropriate. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8903 Trac 1.4.3 John Maddock Sat, 14 Dec 2013 12:17:31 GMT <link>https://svn.boost.org/trac10/ticket/8903#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8903#comment:1</guid> <description> <p> Actually boost/thread/pthread/mutex.hpp uses BOOST_VERIFY for those operations, in particular since destructors should never throw exceptions it's hard to do much else for pthread_mutex_unlock. In any case those types aren't useable in static initialization which is a requirement for Regex. </p> <p> I'll tighten up lock acquisition, and use BOOST_VERIFY in the lock free case. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sat, 14 Dec 2013 17:44:10 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8903#comment:2 https://svn.boost.org/trac10/ticket/8903#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in Git develop. </p> Ticket