* cygthread.cc (cygthread::cygthread): Guard debugging variable with "ifdef

DEBUGGING".
(cygthread::release): Ditto.
This commit is contained in:
Christopher Faylor 2004-12-23 15:36:59 +00:00
parent aad93aea3e
commit 7a2ba9dbec
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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>

View 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;