* cygtls.h (struct _cygtls): Remove unneeded elements.

* thread.cc (pthread::exit): Avoid potential double call to _my_tls.remove.
* tlsoffsets.h: Regenerate.
This commit is contained in:
Christopher Faylor
2010-02-10 03:17:32 +00:00
parent 5880fbf783
commit 161387a725
4 changed files with 37 additions and 43 deletions

View File

@@ -486,14 +486,10 @@ pthread::exit (void *value_ptr)
_my_tls.local_clib.__sdidinit = 0;
(_reclaim_reent) (_REENT);
if (InterlockedDecrement (&MT_INTERFACE->threadcount) == 0)
::exit (0);
else
{
_my_tls.remove (INFINITE);
ExitThread (0);
}
ExitThread (0);
}
int