From 0ea5641df42858833cb9c865e3dce21e8faa461d Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Sun, 1 May 2011 15:48:09 +0200 Subject: adding thread_detach to system.h and system.c --- src/base/system.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/base/system.h') diff --git a/src/base/system.h b/src/base/system.h index a486b89d..aab71bff 100644 --- a/src/base/system.h +++ b/src/base/system.h @@ -367,6 +367,16 @@ void thread_destroy(void *thread); */ void thread_yield(); +/* + Function: thread_detach + Puts the thread in the detached thread, guaranteeing that + resources of the thread will be freed immediately when the + thread terminates. + + Parameters: + thread - Thread to detach +*/ +void thread_detach(void *thread); /* Group: Locks */ typedef void* LOCK; -- cgit 1.4.1