aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-07-12 21:01:41 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-07-12 21:01:41 +0000
commitf4e7eb10468044ade405c93f513d476afcf5ce95 (patch)
tree68fa90bb4f620190a4fd92101fb8fe6904838b7a /thread.c
parent09f4fd5003b3430c2a46b8494c19ca184c94157d (diff)
downloadlcd4linux-f4e7eb10468044ade405c93f513d476afcf5ce95.tar.gz
[lcd4linux @ 2006-07-12 21:01:41 by reinelt]
thread_destroy, minor cleanups git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@669 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c11
1 files changed, 10 insertions, 1 deletions
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);
+}