membarrier.2: ffix code example

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-04-12 13:30:07 +02:00
parent d8b2fd50e1
commit 1afb17b76e
1 changed files with 5 additions and 1 deletions

View File

@ -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 ().