lkml.org 
[lkml]   [2009]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Difference between atomic operations and memory barriers
Leonidas . wrote:
>
> any_t *ptr = something;
>
> is always atomic even on SMPs without using locks, barriers then my
> doubt is cleared. Thanks.

I assume that this only holds if the pointer (not the thing it points
to) is denoted as volatile.

-Michael


\
 
 \ /
  Last update: 2009-10-27 11:23    [W:1.852 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site