提交 d3e4abdd 编写于 作者: L Laszlo Ersek 提交者: Michael Tokarev

docs/atomics.txt: fix two typos

Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: NLaszlo Ersek <lersek@redhat.com>
Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
上级 5ecaa4ed
...@@ -281,7 +281,7 @@ note that the other barrier may actually be in a driver that runs in ...@@ -281,7 +281,7 @@ note that the other barrier may actually be in a driver that runs in
the guest! the guest!
For the purposes of pairing, smp_read_barrier_depends() and smp_rmb() For the purposes of pairing, smp_read_barrier_depends() and smp_rmb()
both count as read barriers. A read barriers shall pair with a write both count as read barriers. A read barrier shall pair with a write
barrier or a full barrier; a write barrier shall pair with a read barrier or a full barrier; a write barrier shall pair with a read
barrier or a full barrier. A full barrier can pair with anything. barrier or a full barrier. A full barrier can pair with anything.
For example: For example:
...@@ -294,7 +294,7 @@ For example: ...@@ -294,7 +294,7 @@ For example:
smp_rmb(); smp_rmb();
y = a; y = a;
Note that the "writing" thread are accessing the variables in the Note that the "writing" thread is accessing the variables in the
opposite order as the "reading" thread. This is expected: stores opposite order as the "reading" thread. This is expected: stores
before the write barrier will normally match the loads after the before the write barrier will normally match the loads after the
read barrier, and vice versa. The same is true for more than 2 read barrier, and vice versa. The same is true for more than 2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册