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'
    Linus Torvalds wrote:
    >
    > 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".

    That's sig_atomic_t, which simply guarantees that the data item
    can be read or written indivisibly with respect to signal handlers.

    The standard goes on to suggest using it in combination with volatile
    as needed.

    Cheers
    -
    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/

    \
     
     \ /
      Last update: 2006-07-06 22:31    [W:0.019 / U:0.260 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site