-
Notifications
You must be signed in to change notification settings - Fork 25
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
Provide loop wrapper for casArrayElem? #64
Comments
Unfortunately, this can't be implemented terribly efficiently using the low-level atomic operations. Some CMM code will be needed to do it optimally. Given |
I just realized you were probably looking for something like |
The
casArrayElem
provide a low-level atomic operations based onTicket
, Is there any possibilities to provide a loop wrapper similar toatomicModifyIORef
? As an user i only care about swapping a new result into array and get the old value out rather than manually compare pointer and looping.The text was updated successfully, but these errors were encountered: