-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
[RUNTIME] add ability to terminate/pause/resume a wasm program #84
Conversation
Codecov Report
@@ Coverage Diff @@
## main #84 +/- ##
==========================================
+ Coverage 79.04% 79.58% +0.54%
==========================================
Files 12 14 +2
Lines 1188 1264 +76
==========================================
+ Hits 939 1006 +67
- Misses 249 258 +9
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
nice job! |
I write a new function
run_wasm_bpf_module_async
to provide the ability to run a wasm program async and to control it.run_wasm_bpf_module
.WasmProgramHandle
provides ability topause
/resume
/terminate
a wasm program.JoinHandle
provides the ability to wait for the finish of the wasm program.ProgramOperation::Resume
signal to a hanging thread which is stuck on receiving the next operation.