You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Interrupt the corresponding sandbox from running.
210
210
///
211
-
/// - If this is called while the the sandbox currently executing a guest function call, it will interrupt the sandbox and return `true`.
212
-
/// - If this is called while the sandbox is not running (for example before or after calling a guest function), it will do nothing and return `false`.
211
+
/// This method sets a cancellation flag that prevents or stops the execution of guest code:
212
+
/// - If called while the sandbox is currently executing a guest function, it will interrupt the vCPU.
213
+
/// - If called before the sandbox starts executing (e.g., before a guest function call), it will prevent execution from starting.
213
214
///
214
215
/// # Note
215
216
/// This function will block for the duration of the time it takes for the vcpu thread to be interrupted.
216
-
fnkill(&self) -> bool;
217
+
fnkill(&self);
217
218
218
219
/// Used by a debugger to interrupt the corresponding sandbox from running.
219
220
///
@@ -374,13 +375,13 @@ impl InterruptHandleImpl for LinuxInterruptHandle {
374
375
375
376
#[cfg(any(kvm, mshv3))]
376
377
implInterruptHandleforLinuxInterruptHandle{
377
-
fnkill(&self)-> bool{
378
+
fnkill(&self){
378
379
// Release ordering ensures that any writes before kill() are visible to the vcpu thread
379
380
// when it checks is_cancelled() with Acquire ordering
0 commit comments