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

RawMutex moving. #410

Open
zakarumych opened this issue Oct 17, 2023 · 1 comment
Open

RawMutex moving. #410

zakarumych opened this issue Oct 17, 2023 · 1 comment

Comments

@zakarumych
Copy link

As far as I understand it RawMutex uses its current address as a key into parking_lot_core methods.
Therefore RawMutex value itself cannot be moved while lock is acquired.

This is not a problem for a Mutex because it is borrowed while lock is held, preventing moving. But I don't see this in documentation for RawMutex that might be used directly.

@Amanieu
Copy link
Owner

Amanieu commented Oct 17, 2023

That's a good point! Would you be willing to write up a doc PR>

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

No branches or pull requests

2 participants