Skip to content

c-api: support yielding in wasmtime_store_epoch_deadline_callback#7476

Merged
alexcrichton merged 5 commits into
bytecodealliance:mainfrom
rockwotj:epoch
Nov 6, 2023
Merged

c-api: support yielding in wasmtime_store_epoch_deadline_callback#7476
alexcrichton merged 5 commits into
bytecodealliance:mainfrom
rockwotj:epoch

Conversation

@rockwotj
Copy link
Copy Markdown
Contributor

@rockwotj rockwotj commented Nov 3, 2023

Allow supporting yielding in the epoch callback in addition to continuing, additionally support a finalizer, as that is the "standard" approach to the C API. Happy to take suggestion on API alternatives.

@rockwotj rockwotj requested a review from a team as a code owner November 3, 2023 16:55
@rockwotj rockwotj requested review from fitzgen and removed request for a team November 3, 2023 16:55
Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
@rockwotj
Copy link
Copy Markdown
Contributor Author

rockwotj commented Nov 3, 2023

Fixed cargo fmt

@rockwotj
Copy link
Copy Markdown
Contributor Author

rockwotj commented Nov 3, 2023

Force push: Fixed linter warning for dead code and moved the CallbackDataPtr struct now that it's not used in store.rs

Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
@rockwotj
Copy link
Copy Markdown
Contributor Author

rockwotj commented Nov 3, 2023

Force push: Fix typedef (it's not a C++ using def...)

@github-actions github-actions Bot added the wasmtime:c-api Issues pertaining to the C API. label Nov 3, 2023
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 3, 2023

Subscribe to Label Action

cc @peterhuene

Details This issue or pull request has been labeled: "wasmtime:c-api"

Thus the following users have been cc'd because of the following labels:

  • peterhuene: wasmtime:c-api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

@rockwotj rockwotj requested a review from alexcrichton November 3, 2023 20:47
@alexcrichton alexcrichton added this pull request to the merge queue Nov 4, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 4, 2023
rockwotj and others added 3 commits November 4, 2023 14:09
Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
@alexcrichton alexcrichton added this pull request to the merge queue Nov 6, 2023
Merged via the queue into bytecodealliance:main with commit 28fd6bf Nov 6, 2023
@rockwotj rockwotj deleted the epoch branch November 6, 2023 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:c-api Issues pertaining to the C API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants