File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ variables.
87
87
CATCH { default { put .^name, ': ', .Str } };
88
88
# OUTPUT: «X::Assignment::RO: Cannot modify an immutable Int»
89
89
90
- = head1 Atomic Operations on Scalar
90
+ = head1 Atomic operations on Scalar
91
91
92
92
A C < Scalar > can have its value changed using a hardware-supported atomic
93
93
compare and swap operation. This is useful when implementing lock free data
@@ -157,7 +157,7 @@ Example:
157
157
158
158
= head1 Routines
159
159
160
- = head2 atomic-assign
160
+ = head2 sub atomic-assign
161
161
162
162
Defined as:
163
163
@@ -167,7 +167,7 @@ Performs an atomic assignment of C<$value> into the C<Scalar> C<$target>. The
167
167
C < atomic-assign > routine ensures that any required barriers are performed such
168
168
that the changed value will be "published" to other threads.
169
169
170
- = head2 atomic-fetch
170
+ = head2 sub atomic-fetch
171
171
172
172
multi sub atomic-fetch($target is rw)
173
173
@@ -191,7 +191,7 @@ It would be legal for a compiler to observe that C<$started> is not updated in
191
191
the loop, and so lift the read out of the loop, thus causing the program to
192
192
never terminate.
193
193
194
- = head2 cas
194
+ = head2 sub cas
195
195
196
196
Defined as:
197
197
You can’t perform that action at this time.
0 commit comments