OpenCloudOS-Kernel/scripts/atomic/fallbacks/read_acquire

8 lines
125 B
Plaintext
Executable File

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