aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
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);
+}