Re: Difference between atomic operations and memory barriers

From: Michael Schnell
Date: Tue Oct 27 2009 - 07:02:04 EST


Leonidas . wrote:
> but pointer
> assignment would still be atomic.
>

Yep. bit maybe the assignment to the memory cell that holds the pointer
just would be optimized out and be done at all. This my be considered
atomic but of course not desired for anything atomicness is considered for.

-Michael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/