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

Refactor ManualResetEvent to use PinList #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SabrinaJewson
Copy link

By using my PinList abstraction instead of the LinkedList abstraction, ManualResetEvent can be implemented in fully safe code. This is quite a benefit because it also makes it clear that it’s not UB (#56) — the fundamental problem is still there but because it’s abstracted in the PinList by pinned-aliasable I think it’s a lot more acceptable to have (and it also works under Miri).

If there is interest, I would be happy to refactor more of the types provided by this crate to use PinList — so far it’s just a proof-of-concept for the simplest one.

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.

None yet

1 participant