Messages in this thread | | | Date | Thu, 6 Jul 2006 12:58:21 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: [patch] spinlocks: remove 'volatile' |
| |
On Thu, 6 Jul 2006, Chris Friesen wrote: > > The C standard requires the use of volatile for signal handlers and setjmp.
Actually, the C standard requires "sigatomic_t".
> For userspace at least the whole discussion of "barriers" is sort of > moot--there are no memory barriers defined in the C language, which makes it > kind of hard to write portable code that uses them.
Any locking primitive BY DEFINITION has a barrier in it.
If it doesn't, it's not a locking primitive, it's a random sequence of code that does something pointless.
Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |