Skip to content

Commit

Permalink
Mark mutex and condition in README as shared structs
Browse files Browse the repository at this point in the history
  • Loading branch information
syg committed Oct 1, 2024
1 parent 38b83c0 commit 7320865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Higher-level synchronization primitives are needed to aid in writing threadsafe
The following pseudocode describes the API.

```javascript
class Atomics.Mutex {
shared struct Atomics.Mutex {
// Creates a new mutex.
constructor();

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

Expand Down

0 comments on commit 7320865

Please sign in to comment.