From b416e414376c0eeb472e93a41b394085e94df7b2 Mon Sep 17 00:00:00 2001 From: entropy Date: Wed, 13 Sep 2006 20:04:57 +0000 Subject: [lcd4linux @ 2006-09-13 20:04:57 by entropy] threads change argv[0] to their thread name, for a neat 'ps' output git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@711 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- thread.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'thread.h') diff --git a/thread.h b/thread.h index fcecc89..39ef6a8 100644 --- a/thread.h +++ b/thread.h @@ -1,4 +1,4 @@ -/* $Id: thread.h,v 1.7 2006/07/12 21:01:41 reinelt Exp $ +/* $Id: thread.h,v 1.8 2006/09/13 20:04:57 entropy Exp $ * * thread handling (mutex, shmem, ...) * @@ -26,6 +26,9 @@ * * * $Log: thread.h,v $ + * Revision 1.8 2006/09/13 20:04:57 entropy + * threads change argv[0] to their thread name, for a neat 'ps' output + * * Revision 1.7 2006/07/12 21:01:41 reinelt * thread_destroy, minor cleanups * @@ -56,6 +59,10 @@ #ifndef _THREAD_H_ #define _THREAD_H_ + +extern int thread_argc; +extern char **thread_argv; + int mutex_create(void); void mutex_lock(const int semid); void mutex_unlock(const int semid); -- cgit v1.2.3