* 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:
@@ -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
|
||||
|
Reference in New Issue
Block a user