cmpxchg.h File Reference

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

Defines

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

Define Documentation

#define __xg ( x   )     ((volatile long *)(x))
#define cmpxchg ( ptr,
o,
n   ) 
Value:
((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o),\
                                     (unsigned long)(n),sizeof(*(ptr))))

Referenced by ReferenceCount::decref(), ReferenceCount::incref(), return_death_pids(), take_death_pids(), and Lock::try_lock().

#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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2