Brooklyn/scripts/atomic/fallbacks/read_acquire
2021-05-27 00:09:36 +05:00

8 lines
141 B
Plaintext

cat <<EOF
static __always_inline ${ret}
${arch}${atomic}_read_acquire(const ${atomic}_t *v)
{
return smp_load_acquire(&(v)->counter);
}
EOF