Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-12-23 18:36:59 +0300
committerChristopher Faylor <me@cgf.cx>2004-12-23 18:36:59 +0300
commit7a2ba9dbec847e68908d6c7eb8a93895d5ce9cff (patch)
treea1216b32c0bfa094f00e13d9845103aecd935e50 /winsup/cygwin/cygthread.cc
parentaad93aea3e7ee34c9fee6cfc4b7e92a9865a0664 (diff)
* cygthread.cc (cygthread::cygthread): Guard debugging variable with "ifdef
DEBUGGING". (cygthread::release): Ditto.
Diffstat (limited to 'winsup/cygwin/cygthread.cc')
-rw-r--r--winsup/cygwin/cygthread.cc4
1 files changed, 4 insertions, 0 deletions
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;