From 356606e9ec6eba20acfac7b1900d581e8a821907 Mon Sep 17 00:00:00 2001 From: reinelt <> Date: Wed, 12 Jul 2006 21:01:41 +0000 Subject: [lcd4linux @ 2006-07-12 21:01:41 by reinelt] thread_destroy, minor cleanups --- thread.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 4246c7d..bbfad14 100644 --- a/thread.c +++ b/thread.c @@ -1,4 +1,4 @@ -/* $Id: thread.c,v 1.7 2005/05/08 04:32:45 reinelt Exp $ +/* $Id: thread.c,v 1.8 2006/07/12 21:01:41 reinelt Exp $ * * thread handling (mutex, shmem, ...) * @@ -26,6 +26,9 @@ * * * $Log: thread.c,v $ + * Revision 1.8 2006/07/12 21:01:41 reinelt + * thread_destroy, minor cleanups + * * Revision 1.7 2005/05/08 04:32:45 reinelt * CodingStyle added and applied * @@ -208,3 +211,9 @@ int thread_create(const char *name, void (*thread) (void *data), void *data) return pid; } + + +int thread_destroy(const int pid) +{ + return kill(pid, SIGKILL); +} -- cgit v1.2.3