Re: [boost] Bug in sp_counted_base and atomic_count?

19 Apr
2007
19 Apr
'07
9:12 a.m.
Peter Dimov wrote:
Thank you very much. Now I understand. I underestimate the "pass to another thread" procedure, that must contain all necessary fences to ensure visibility of counter variable. Dmitriy V'jukov

19 Apr
19 Apr
4:39 p.m.
New subject: Bug in sp_counted_base and atomic_count?
On 4/19/07, Dmitriy V'jukov <dvyukov@gmail.com> wrote:
In particular, looking at your original example:
*** need a write barrier here, so that other thread doesn't see 'sc' set before its contents ***
*** need a read barrier when reading 'sc', so that you don't see it before its contents ***
Tony
6646
Age (days ago)
6646
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dmitriy V'jukov
-
Gottlob Frege