Hi,
I have 2 threads that access this one object.
Thread A: updates a boost hared_ptr member
Thread B: reads that boost shared_ptr member
Since a shared_ptr isn't an integer/real pointer type, it cannot be read atomically by Thread B.
I want to avoid locks.
How can I guarentee that Thread B gets a valid shared_ptr?
Thanks!