Re: Question on atomic_inc/dec
From: Arjan van de Ven
Date: Wed Oct 15 2003 - 02:58:51 EST
On Tue, 2003-10-14 at 23:44, Tim Hockin wrote:
> On Tue, Oct 14, 2003 at 02:17:49PM -0700, Perez-Gonzalez, Inaky wrote:
> > It will be in include/asm/atomic.h; however, it is not wise to
> > use directly the kernel stuff unless you are coding kernel stuff.
>
> Is there any reason NOT to use the atomic ops in user-space?
also the /usr/include/asm/atomic.h versions never were actually atomic!
Those being actually atomic depends on CONFIG_SMP defined, which for
userspace... well you get the picture.
Attachment:
signature.asc
Description: This is a digitally signed message part