Boost C++ Libraries: Ticket #7125: weak_ptr::lock() thread safety https://svn.boost.org/trac10/ticket/7125 <p> Imagine the following code: </p> <pre class="wiki">shared_ptr&lt;T&gt; sp(new ...); weak_ptr&lt;T&gt; wp(sp); sp.reset(); // thread A shared_ptr&lt;T&gt; sp1 = wp.lock(); // thread B </pre><p> It is not clear from documentation, whether it is safe to call shared_ptr::reset() and weak_ptr::lock() concurrently in different threads. It is very frequently asked question and should be documented explicitly. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7125 Trac 1.4.3