From 20bdb31bfc27e044290756a681e3329f6e677ab7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 22 Nov 1999 20:53:18 +0000 Subject: Update. 1999-11-22 Ulrich Drepper * internals.h: Add prototype for __pthread_manager_event. * manager.c (__pthread_manager_event): New function. (pthread_start_thread_event): Correct computation of self. Use INIT_THREAD_SELF. * pthread.c (__pthread_manager_thread): Initialize p_lock. (__pthread_initialize_manager): Respect event flags also for creation of the manager thread. --- linuxthreads_db/thread_dbP.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'linuxthreads_db/thread_dbP.h') diff --git a/linuxthreads_db/thread_dbP.h b/linuxthreads_db/thread_dbP.h index 7e9fb486c6..13e534afe6 100644 --- a/linuxthreads_db/thread_dbP.h +++ b/linuxthreads_db/thread_dbP.h @@ -9,7 +9,12 @@ /* Comment out the following for less verbose output. */ -#define LOG(c) __libc_write (2, c "\n", strlen (c "\n")) +#ifndef NDEBUG +# define LOG(c) if (__td_debug) __libc_write (2, c "\n", strlen (c "\n")) +extern int __td_debug; +#else +# define LOG(c) +#endif /* Handle for a process. This type is opaque. */ -- cgit v1.2.3