Re: [Boost-bugs] [Boost C++ Libraries] #11457: windows - boost::recursive_mutex leaks event handles when lock contention occurs.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11457: windows - boost::recursive_mutex leaks event handles when lock contention occurs.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-02-02 02:11:33


#11457: windows - boost::recursive_mutex leaks event handles when lock contention
occurs.
-------------------------------+-----------------------------------------
  Reporter: al.mendall@… | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.46.0 | Severity: Problem
Resolution: | Keywords: handle leak recursive_mutex
-------------------------------+-----------------------------------------

Comment (by anonymous jellyfish):

 I saw a rising Event handle count as described because of
 boost::recursive_mutex contention with many objects. But the handles
 aren't leaking; if I delete my array of objects, the
 boost::recursive_mutex destructor releases the Event handle if it created
 one.

 So, I don't think there is a bug here. If you have an array of 100k
 objects each containing boost::recursive_mutex, be prepared for anywhere
 between 0 and 100k Event handles.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11457#comment:9>
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:21 UTC