$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] weak_ptr and thread safety
From: Pavel Shevaev (pacha.shevaev_at_[hidden])
Date: 2009-07-22 15:43:31
> // before A and B
> shared_ptr<X> p( new X );
> weak_ptr<X> wp( p );
>
> // A
> shared_ptr<X> p2 = wp.lock();
>
> // B
> p.reset();
>
> is safe (A reads wp, B writes p).
This is my case, thanks for the clarification(what a relief, btw).
Hm...guess at least it's not what causing my app to seg.fault :)
-- Best regards, Pavel