lkml.org 
[lkml]   [2009]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateThu, 21 May 2009 16:36:41 -0700
From"H. Peter Anvin" <>
SubjectRe: [PATCH 1/3] kernel.h: Add DO_ONCE statement expression macro
Joe Perches wrote:
>
> Add a DO_ONCE statement expression analogous to printk_once
> that executes any arbitrary statement exactly once.
>

If you're truly going to make that guarantee you should use an atomic
test and set.

-hpa


\
 
 \ /
  Last update: 2009-05-22 01:39    [from the cache]
©2003-2010