File tree Expand file tree Collapse file tree
tools/memory-model/Documentation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ Packaged primitives: Sequence locking
134134Lockless programming is considered by many to be more difficult than
135135lock-based programming, but there are a few lockless design patterns that
136136have 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
138138and effective ways of using it that avoid the need to pay attention to
139139memory ordering.
140140
@@ -205,7 +205,7 @@ If you want to keep things simple, use the initialization and read-out
205205operations from the previous section only when there are no racing
206206accesses. Otherwise, use only fully ordered operations when accessing
207207or 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
209209happened before any code following any later access to that same variable.
210210
211211Please note that per-CPU functions are not atomic operations and
You can’t perform that action at this time.
0 commit comments