From 7a2ba9dbec847e68908d6c7eb8a93895d5ce9cff Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 23 Dec 2004 15:36:59 +0000 Subject: [PATCH] * cygthread.cc (cygthread::cygthread): Guard debugging variable with "ifdef DEBUGGING". (cygthread::release): Ditto. --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/cygthread.cc | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 25e0ef947..9e2100881 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2004-12-23 Christopher Faylor + + * cygthread.cc (cygthread::cygthread): Guard debugging variable with + "ifdef DEBUGGING". + (cygthread::release): Ditto. + 2004-12-23 Christopher Faylor Corinna Vinschen diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc index bca2b28f8..20f51d593 100644 --- a/winsup/cygwin/cygthread.cc +++ b/winsup/cygwin/cygthread.cc @@ -180,7 +180,9 @@ cygthread::cygthread (LPTHREAD_START_ROUTINE start, LPVOID param, if (!h) api_fatal ("thread handle not set - %p<%p>, %E", h, id); thread_printf ("created thread %p", h); +#ifdef DEBUGGING terminated = false; +#endif } } @@ -236,7 +238,9 @@ cygthread::release (bool nuke_h) { if (nuke_h) h = NULL; +#ifdef DEBUGGING __oldname = __name; +#endif __name = NULL; stack_ptr = NULL; func = NULL;