lkml.org 
[lkml]   [2008]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/5] lib: introduce call_once()
From
Date
On Mon, 2008-03-10 at 23:57 +0900, Akinobu Mita wrote:
> +++ 2.6-rc/include/linux/once.h
> +struct once_control {
> + struct mutex lock;
> + int done;

bool?

> +};
> +
> +#define __ONCE_INITIALIZER(name) { \
> + .lock = __MUTEX_INITIALIZER(name.lock), \
> + .done = 0, \
> + }
> +
> +#define DEFINE_ONCE(name) struct once_control name = __ONCE_INITIALIZER(name)

static?

> +
> +extern int call_once_slow(struct once_control *once_control,
> + int (*init_rouine)(void));

return bool?
spelling: s/rouine/routine/g




\
 
 \ /
  Last update: 2008-03-10 16:33    [W:0.072 / U:9.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site