Skip to content

Commit 1f1b141

Browse files
committed
Improve what atomic definition of a class means
1 parent 2b6a7bd commit 1f1b141

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/synchronization.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ Notes:
100100
- Variable read reads value from preexisting variable.
101101
- Variable definition creates new variable (operation is serialized with
102102
writes, implies an update cannot be lost).
103-
- Module/Class definition is actually constant definition. It is defined
104-
instantly, however its methods are then processed sequentially.
103+
- A Module or a Class definition is actually a constant definition.
104+
The definition is atomic, it assigns the Module or the Class to the
105+
constant, then its methods are defined atomically one by one.
105106
- `||=`, `+=`, etc. are actually two operations read and write which implies
106107
that it's not an atomic operation. See volatile variables
107108
with compare-and-set.

0 commit comments

Comments
 (0)