* cygtls.cc (_cygtls::init_thread): Call _REENT_INIT_PTR. Drop setting

current locale and calling srand48.
This commit is contained in:
Corinna Vinschen 2011-01-11 08:05:51 +00:00
parent 0a18555e4f
commit cd441f06e2
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2011-01-11 Corinna Vinschen <corinna@vinschen.de>
* cygtls.cc (_cygtls::init_thread): Call _REENT_INIT_PTR. Drop setting
current locale and calling srand48.
2011-01-02 Christopher Faylor <me+cygwin@cgf.cx>
* ChangeLog-2010: Create from ChangeLog.

View File

@ -1,6 +1,6 @@
/* cygtls.cc
Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Red Hat, Inc.
Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Red Hat, Inc.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
@ -81,6 +81,7 @@ _cygtls::init_thread (void *x, DWORD (*func) (void *, void *))
if (x)
{
memset (this, 0, sizeof (*this));
_REENT_INIT_PTR (&local_clib);
stackptr = stack;
if (_GLOBAL_REENT)
{
@ -92,9 +93,7 @@ _cygtls::init_thread (void *x, DWORD (*func) (void *, void *))
local_clib.__sglue._niobs = 3;
local_clib.__sglue._iobs = &_GLOBAL_REENT->__sf[0];
}
local_clib._current_locale = "C";
locals.process_logmask = LOG_UPTO (LOG_DEBUG);
srand48 ((long int) &x);
}
thread_id = GetCurrentThreadId ();