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

wasi: Thread Lifecycle Fix #3639

Merged
merged 2 commits into from
Mar 2, 2023
Merged

wasi: Thread Lifecycle Fix #3639

merged 2 commits into from
Mar 2, 2023

Conversation

theduke
Copy link
Contributor

@theduke theduke commented Mar 2, 2023

Fix wasi thread lifecycle and result handling.

  • refactor(wasi): Rename WasiThreadGuard to WasiThreadRunGuard
  • fix(wasi): WsaiThreadRunGuard: Don't overwrite finished state

theduke added 2 commits March 2, 2023 09:58
The name is more descriptive, since the guard is only supposed to use by
code invoking the Wasm code.
Do not overwrite the finished state if the task already has a result.

Prevents mistakenly propagating errors from the WasiThreadRunGuard drop
implementation.
@theduke theduke changed the title wasi: Thread LifeCycle Fixes wasi: Thread Lifecycle Fixes Mar 2, 2023
@theduke theduke changed the title wasi: Thread Lifecycle Fixes wasi: Thread Lifecycle Fix Mar 2, 2023
@theduke theduke marked this pull request as ready for review March 2, 2023 09:32
@theduke theduke requested a review from ptitSeb March 2, 2023 09:32
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.

Looks good to me.

@theduke theduke enabled auto-merge (rebase) March 2, 2023 09:42
@theduke theduke merged commit c7c9c8c into master Mar 2, 2023
@theduke theduke deleted the wasi-thread-guard-fixes branch March 2, 2023 09:43
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