Closed haneefmubarak closed 9 years ago
init()
lock()
unlock()
int
p_cpu_relax
x86
x86_64
armv2
armv3
armv4
armv5
armv6
armv7
armv8
PowerPC
Power7
Power8
p_fence
printf()
cc @olajep @aolofsson
Mutexes
init()
,lock()
,unlock()
- without extra memory allocation)int
) to reduce performance lost from indirectionint
size to maximize performancep_cpu_relax
to reduce load and cycle wastage during lock contention (when possible)Atomics
x86
x86_64
armv2
armv3
armv4
armv5
armv6
armv7
armv8
PowerPC
Power7
Power8
x86
x86_64
x86
x86_64
p_fence
printf()
is not a real memory fence)