Skip to content

Commit 7320865

Browse files
committed
Mark mutex and condition in README as shared structs
1 parent 38b83c0 commit 7320865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Higher-level synchronization primitives are needed to aid in writing threadsafe
224224
The following pseudocode describes the API.
225225

226226
```javascript
227-
class Atomics.Mutex {
227+
shared struct Atomics.Mutex {
228228
// Creates a new mutex.
229229
constructor();
230230

@@ -330,7 +330,7 @@ That is, because point the `x` and `y` fields are accessed under lock, no agent
330330
The following pseudocode describes the API.
331331
332332
```javascript
333-
class Atomics.Condition {
333+
shared struct Atomics.Condition {
334334
// Creates a new condition variable.
335335
constructor();
336336

0 commit comments

Comments
 (0)