Re: User space atomic operation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 20, 2003 at 13:19:25 +0100, Arjan van de Ven wrote:
> On Thu, Nov 20, 2003 at 01:15:57PM +0100, Jan Hudec wrote:
> > On Tue, Nov 18, 2003 at 09:57:55 +0100, Arjan van de Ven wrote:
> > > On Wed, 2003-11-05 at 01:51, Yao, Zhigang(Richard) wrote:
> > > > Hi,
> > > > 
> > > > I want to do the atomic operation ( such as i++ ) in user space, can I copy
> > > > and include include/XXX/atomic.h directly?
> > > 
> > > the answer is no. If you do that the operations aren't guaranteed to be
> > > atomic (and probably arent even on x86)
> > > 
> > > However glibc has primitives for this instead, as do helper libraries
> > > like apr etc etc
> > 
> > Failed to find them so far! Please, could you share with us which ones you mean.
> 
> http://lxr.webperf.org/source.cgi/srclib/apr/include/apr_atomic.h
> 
> for example
> 

That is apr. I would, however, be much more interested in the primitives
provided by glibc.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux