OSDN Git Service

* cygthread.cc (cygthread::cygthread): Guard debugging variable with "ifdef
authorcgf <cgf>
Thu, 23 Dec 2004 15:36:58 +0000 (15:36 +0000)
committercgf <cgf>
Thu, 23 Dec 2004 15:36:58 +0000 (15:36 +0000)
DEBUGGING".
(cygthread::release): Ditto.

winsup/cygwin/ChangeLog
winsup/cygwin/cygthread.cc

index 25e0ef9..9e21008 100644 (file)
@@ -1,4 +1,10 @@
 2004-12-23  Christopher Faylor  <cgf@timesys.com>
+
+       * cygthread.cc (cygthread::cygthread): Guard debugging variable with
+       "ifdef DEBUGGING".
+       (cygthread::release): Ditto.
+
+2004-12-23  Christopher Faylor  <cgf@timesys.com>
            Corinna Vinschen  <corinna@vinschen.de>
 
        * path.cc (path_conv::check): Don't strip the trailing slash from a
index bca2b28..20f51d5 100644 (file)
@@ -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;