cmpxchg.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LOCK_PREFIX   ""
#define __xg(x)   ((volatile long *)(x))
#define cmpxchg(ptr, o, n)


Define Documentation

#define __xg (  )     ((volatile long *)(x))

Definition at line 42 of file cmpxchg.h.

#define cmpxchg ( ptr,
o,
 ) 

Value:

((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o),\
                                     (unsigned long)(n),sizeof(*(ptr))))

Definition at line 77 of file cmpxchg.h.

#define LOCK_PREFIX   ""

Taken from the standard glibc headers: asm-x86_64/system.h Including the standard asm headers never seemed to work properly.

  • they use the keyword new which is offending C++
  • in a newer version (mid-january 2007), the assembly code was even wrong

Definition at line 39 of file cmpxchg.h.


Generated on Sun Apr 4 23:26:04 2010 for Active Objects by  doxygen 1.5.9