Re: [Boost-bugs] [Boost C++ Libraries] #5673: Quick allocator error in multi thread

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5673: Quick allocator error in multi thread
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-25 16:16:17


#5673: Quick allocator error in multi thread
-----------------------------------------------------+----------------------
  Reporter: Yury Podpruzhnikov <QWERTYura@…> | Owner: pdimov
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: smart_ptr
   Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------------------+----------------------

Comment (by Yury Podpruzhnikov <QWERTYura@…>):

 With global_mutex I can protect me from crash.

 At start (then I have only one thread) I can create first fictive
 shared_ptr. It initialize global_mutex. And next usage of any shared_ptr
 will be synchronize.

 Now I not sure in usage of shared_ptr
 because first usage new instantiation could use new mutex and produce
 crash.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5673#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:07 UTC