|
Boost : |
Subject: Re: [boost] [lock-free] CDS -yet another lock-free library
From: Tim Blechmann (tim_at_[hidden])
Date: 2010-04-01 04:27:49
Khiszinsky, Maxim wrote:
> Tim Blechmann wrote:
>> are you sure, that _mm_loadl_epi64 is actually atomic in your case?
>> according to the intel manual, the value should be 64bit aligned or
>> should not cross a cache line boundary. are you sure, that this cannot
>> occur?
>
>
> Yes, atomic64_t is declared as
> typedef long long __declspec( align(8) ) atomic64_t ;
you may run into issues, when using aligned members in heap-allocated
structs:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15795
this hit me once a few years ago...
cheers, tim
-- tim_at_[hidden] http://tim.klingt.org When you open windows, bugs get in.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk