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

Fix Missing WaiterError export + Add notify/wait to fd_mmap memory #3833

Merged
merged 4 commits into from
May 1, 2023

Conversation

theduke
Copy link
Contributor

@theduke theduke commented Apr 30, 2023

  • Make wasmer_vm::WaiterError non_exhaustive.
  • vm: Make WaiterError and ThreadConditions public
  • Implement notify/wait support for fd_mmap memory

Note: WaiterError is part of the public API in the LinearMemory trait, so not making it public was an oversight.

theduke added 3 commits April 30, 2023 06:39
This is not a breaking change because the type is not yet public.
* WaiterError really has to be public, because it's part of the
  LinearMemory public interface

  Not making this public was an oversight

* ThreadConditions is made public to allow for re-use in other crates.
  It is supposed to be semi-private though, and hence #[doc(hidden)].
Needed to align with upstream wait/notify introduction.
@theduke theduke requested a review from syrusakbary as a code owner April 30, 2023 04:41
@theduke theduke requested a review from ptitSeb April 30, 2023 04:41
@theduke theduke force-pushed the wait-notify-fixup branch from f386393 to 1e8ebef Compare April 30, 2023 05:17
Copy link
Contributor

@ptitSeb ptitSeb left a comment

Choose a reason for hiding this comment

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

Non exhaustive error, good call!

@theduke theduke enabled auto-merge (rebase) May 1, 2023 21:23
@theduke theduke merged commit cc5af54 into master May 1, 2023
@theduke theduke deleted the wait-notify-fixup branch May 1, 2023 21:37
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.

2 participants