File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tools/memory-model/Documentation Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ Packaged primitives: Sequence locking
134
134
Lockless programming is considered by many to be more difficult than
135
135
lock-based programming, but there are a few lockless design patterns that
136
136
have been built out into an API. One of these APIs is sequence locking.
137
- Although this APIs can be used in extremely complex ways, there are simple
137
+ Although this API can be used in extremely complex ways, there are simple
138
138
and effective ways of using it that avoid the need to pay attention to
139
139
memory ordering.
140
140
@@ -205,7 +205,7 @@ If you want to keep things simple, use the initialization and read-out
205
205
operations from the previous section only when there are no racing
206
206
accesses. Otherwise, use only fully ordered operations when accessing
207
207
or modifying the variable. This approach guarantees that code prior
208
- to a given access to that variable will be seen by all CPUs has having
208
+ to a given access to that variable will be seen by all CPUs as having
209
209
happened before any code following any later access to that same variable.
210
210
211
211
Please note that per-CPU functions are not atomic operations and
You can’t perform that action at this time.
0 commit comments