Skip to content

Conversation

@aviatesk
Copy link
Member

No description provided.

@aviatesk aviatesk requested a review from vtjnash September 30, 2022 04:31
`getfield` expression and is modified atomically.
The syntax `@atomic op(x.f, v)` (and its equivalent `@atomic x.f op v`) returns
`modifyproperty!(x, :f, op, v, :sequentially_consistent)`, where the first argument
must be a `getproperty` expression and is modified atomically.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swapproperty! also calls it a getfield expression

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to keep calling it getfield expression?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either way, just as long as we are consistent

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, let's go with getproperty then. I think getproperty is more familiar with general users.

@aviatesk aviatesk force-pushed the avi/modifypropety-docs branch from 21b703d to c55b34f Compare September 30, 2022 12:41
@aviatesk aviatesk changed the title atomics: tweak modifyproperty! docs atomics: tweak [modify|swap]property! docs Sep 30, 2022
@aviatesk aviatesk merged commit a392e39 into master Oct 3, 2022
@aviatesk aviatesk deleted the avi/modifypropety-docs branch October 3, 2022 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants