Boost logo

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

this hit me once a few years ago...

cheers, tim

When you open windows, bugs get in.

Boost list run by bdawes at, gregod at, cpdaniel at, john at