Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explanatory comment to Mutex implementation #3968

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

durban
Copy link
Contributor

@durban durban commented Jan 22, 2024

Apparently, this thing has a name: Craig, Landin, and Hagersten lock.

Further reading (unfortunately I can't link a PDF):
Magnussen, P., A. Landin, and E. Hagersten. Queue locks on cache coherent multiprocessors. 8th Intl. Parallel Processing Symposium, Cancun, Mexico, Apr. 1994.

@armanbilge
Copy link
Member

cc @BalmungSan :)

Copy link
Contributor

@BalmungSan BalmungSan left a comment

Choose a reason for hiding this comment

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

It is always reassuring to know that I reinvented the wheel, especially if such wheel was originally done by someone smarter than me.

I will try to find some time to read it, just to make sure they aren't doing anything better than us.

PS: We probably should rename cells to use the same names as them.

Copy link
Member

@armanbilge armanbilge left a comment

Choose a reason for hiding this comment

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

fantastic find!

@djspiewak
Copy link
Member

Outstanding.

@djspiewak djspiewak merged commit 71e9035 into typelevel:series/3.5.x Jan 26, 2024
28 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants