Add Interrupt ContextVerb.

This commit is contained in:
4lDO2
2025-04-01 15:34:13 +02:00
parent ab11e6b346
commit 5df7031eb1
+5
View File
@@ -1090,6 +1090,11 @@ impl ContextHandle {
}
Ok(size_of::<usize>())
}
ContextVerb::Interrupt => {
let mut guard = context.write();
guard.unblock();
Ok(size_of::<usize>())
}
ContextVerb::ForceKill => {
if context::is_current(&context) {
// The following functionality simplifies the cleanup step when detached threads