From 5df7031eb19ea1adae61918bf4d6806d2b1b31a6 Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Tue, 1 Apr 2025 15:34:13 +0200 Subject: [PATCH] Add Interrupt ContextVerb. --- src/scheme/proc.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/scheme/proc.rs b/src/scheme/proc.rs index 3c10738a91..e56753c285 100644 --- a/src/scheme/proc.rs +++ b/src/scheme/proc.rs @@ -1090,6 +1090,11 @@ impl ContextHandle { } Ok(size_of::()) } + ContextVerb::Interrupt => { + let mut guard = context.write(); + guard.unblock(); + Ok(size_of::()) + } ContextVerb::ForceKill => { if context::is_current(&context) { // The following functionality simplifies the cleanup step when detached threads