Re: User space atomic operation

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

 



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

Attachment: signature.asc
Description: This is a digitally signed message part


[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