Skip to content

Commit 761ee2d

Browse files
author
Jan-Olof Hendig
committed
Fix indentation
1 parent 4a008cc commit 761ee2d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/Type/atomicint.pod6

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ Performs an atomic compare and swap of the native integer value in location
149149
C<$target>. The first two forms have semantics like:
150150
151151
=for code :preamble<no strict;>
152-
my int $seen = $target;
153-
if $seen == $expected {
154-
$target = $value;
155-
}
156-
return $seen;
152+
my int $seen = $target;
153+
if $seen == $expected {
154+
$target = $value;
155+
}
156+
return $seen;
157157
158158
Except it is performed as a single hardware-supported atomic instruction, as
159159
if all memory access to C<$target> were blocked while it took place. Therefore
@@ -184,7 +184,7 @@ succeeds. Therefore, an atomic multiply of an C<atomicint> C<$i> by 2 could
184184
be implemented as:
185185
186186
=for code :preamble<no strict;>
187-
cas $i, -> int $current { $current * 2 }
187+
cas $i, -> int $current { $current * 2 }
188188
189189
If another thread changed the value while C<$current * 2> was being calculated
190190
then the block would be called again with the latest value for a further

0 commit comments

Comments
 (0)