* cygthread.cc (new): Add a little more debugging.

* thread.cc (pthread_null::exit): Add a _my_tls.remove() for safety.
This commit is contained in:
Christopher Faylor 2005-01-29 05:39:07 +00:00
parent 139acfca40
commit 2eeb0e70a3
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-01-29 Christopher Faylor <cgf@timesys.com>
* cygthread.cc (new): Add a little more debugging.
* thread.cc (pthread_null::exit): Add a _my_tls.remove() for safety.
2005-01-28 Christopher Faylor <cgf@timesys.com>
* cygtls.cc (cygtls::call2): Move socket cleanup.

View File

@ -141,7 +141,7 @@ new (size_t)
/* available */
#ifdef DEBUGGING
if (info->__name)
api_fatal ("name not NULL? id %p, i %d", info->id, info - threads);
api_fatal ("name not NULL? %s, id %p, i %d", info->__name, info->id, info - threads);
#endif
goto out;
}

View File

@ -3288,6 +3288,7 @@ pthread_null::create (void *(*)(void *), pthread_attr *, void *)
void
pthread_null::exit (void *value_ptr)
{
_my_tls.remove (INFINITE);
ExitThread (0);
}