raz
/
conform
/
err
/ AtomicPointer.raz
about
files
log
releases
feed
12 lines · 197 B ·
raw
·
history
· last change
4402a682
1
(* An atomic takes the variable, not a pointer to it (report 6.8). *)
2
module
AtomicPointer;
3
import
SYSTEM;
4
5
var
n:
INT
;
6
7
proc
main*;
8
begin
9
_ :=
XADD
(SYSTEM.
ADR
(n),
1
);
10
end
;
11
12
end
AtomicPointer.