diff options
author | reinelt <> | 2006-07-12 21:01:41 +0000 |
---|---|---|
committer | reinelt <> | 2006-07-12 21:01:41 +0000 |
commit | 356606e9ec6eba20acfac7b1900d581e8a821907 (patch) | |
tree | 68fa90bb4f620190a4fd92101fb8fe6904838b7a /thread.c | |
parent | def7fb22af955b63ca661875d37a608b0b41f8e2 (diff) | |
download | lcd4linux-356606e9ec6eba20acfac7b1900d581e8a821907.tar.gz |
[lcd4linux @ 2006-07-12 21:01:41 by reinelt]
thread_destroy, minor cleanups
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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); +} |