lkml.org 
[lkml]   [2006]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] spinlocks: remove 'volatile'


On Thu, 6 Jul 2006, J.A. Magallón wrote:
>
> I think you are mixing apples and oranges. Using volatile to control o-o-o
> memory accesses is sure wrong.

.. and there _is_ no right way to use it, except the two I've already
mentioned.

Why is that so hard to accept?

The fact is, "volatile" was designed in a different era, and tough, it's
not one of the better parts of the C language.

Get over it.

Linus
\
 
 \ /
  Last update: 2009-11-18 23:46    [W:0.123 / U:5.492 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site