mirror of https://github.com/mkerrisk/man-pages
membarrier.2: ffix code example
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
d8b2fd50e1
commit
1afb17b76e
|
@ -54,7 +54,11 @@ The key idea is to replace, for these matching
|
|||
barriers, the fast-side memory barriers by simple compiler barriers,
|
||||
for example:
|
||||
.PP
|
||||
asm volatile ("" : : : "memory")
|
||||
.in +4n
|
||||
.EX
|
||||
asm volatile ("" : : : "memory")
|
||||
.EE
|
||||
.in
|
||||
.PP
|
||||
and replace the slow-side memory barriers by calls to
|
||||
.BR membarrier ().
|
||||
|
|
Loading…
Reference in New Issue