[Boost-bugs] [Boost C++ Libraries] #8611: pthread functions are called without checking return values for error

Subject: [Boost-bugs] [Boost C++ Libraries] #8611: pthread functions are called without checking return values for error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-23 16:09:25


#8611: pthread functions are called without checking return values for error
---------------------------------------------+------------------------------
 Reporter: Richard <legalize@…> | Owner: fmhess
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: signals2
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: |
---------------------------------------------+------------------------------
 This is similar to https://svn.boost.org/trac/boost/ticket/2681

 The errors are detected by coverity static analysis.

 {{{
 58 void lock()
 59 {

 CID 11713: Unchecked return value
 60 pthread_mutex_lock(&m_);
 61 }

 68 void unlock()
 69 {

 CID 11714 (#1 of 1): Unchecked return value (CHECKED_RETURN)
 1. check_return: Calling function "pthread_mutex_unlock(pthread_mutex_t
 *)" without checking return value (as is done elsewhere 6 out of 7 times).
 2. unchecked_value: No check of the return value of
 "pthread_mutex_unlock(&this->m_)".
 70 pthread_mutex_unlock(&m_);
 71 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8611>
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