Skip to contentSkip to conversation

memory_order_explicit

DISCUSSION Andreas Gustafsson 2 participants 2 messages Aug 12, 2018 – Aug 13, 2018

lore
Share & tools
lore
#0 lore raw

perfbook/toolsoftrade/toolsoftrade.tex says:

For example, ``\co{memory_order_explicit(&a, memory_order_relaxed)}'' is vaguely similar to the Linux kernel's ``\co{READ_ONCE()}''

I'm no expert on the C11 atomics, but as far as I can see, there is no such function as "memory_order_explicit". Did you perhaps mean to say "atomic_load_explicit"?

Signature · 1 line
Andreas Gustafsson, [email protected]
#1 lore raw
Quoted 8 lines · Andreas Gustafsson

perfbook/toolsoftrade/toolsoftrade.tex says:

For example, ``\co{memory_order_explicit(&a, memory_order_relaxed)}'' is vaguely similar to the Linux kernel's ``\co{READ_ONCE()}''

I'm no expert on the C11 atomics, but as far as I can see, there is no such function as "memory_order_explicit". Did you perhaps mean to say "atomic_load_explicit"?

Indeed I did, good catch, thank you! I have applied a fix with your Reported-by.

Thanx, Paul