From 22495036a354e209a7f2085bdd2e1fc82895208b Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Sun, 24 Nov 2013 11:17:54 +0100 Subject: New RPC for thread destruction A new call, thread_terminate_release, is added to support self destruction in threading libraries. * include/mach/gnumach.defs (thread_terminate_release): New simpleroutine declaration. * kern/thread.c: Include vm/vm_user.h and ipc/mach_port.h. (thread_terminate_release): New function. * kern/thread.h (thread_terminate_release): New prototype. --- kern/thread.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'kern/thread.h') diff --git a/kern/thread.h b/kern/thread.h index 3959dfce..beb2dbc0 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -259,6 +259,13 @@ extern kern_return_t thread_create( thread_t *child_thread); extern kern_return_t thread_terminate( thread_t thread); +extern kern_return_t thread_terminate_release( + thread_t thread, + task_t task, + mach_port_t thread_name, + mach_port_t reply_port, + vm_offset_t address, + vm_size_t size); extern kern_return_t thread_suspend( thread_t thread); extern kern_return_t thread_resume( -- cgit v1.2.3