diff options
author | Christopher Faylor <me@cgf.cx> | 2012-08-09 19:58:53 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-08-09 19:58:53 +0000 |
commit | 52d2371da52be037af8020220650645df497d90d (patch) | |
tree | 981b4d875ae69b48fc6dfd2451f72c82002f14cd /winsup/cygwin/dcrt0.cc | |
parent | cc02df128665f400e911e1f67e9963e827962914 (diff) | |
download | newlib-52d2371da52be037af8020220650645df497d90d.zip newlib-52d2371da52be037af8020220650645df497d90d.tar.gz newlib-52d2371da52be037af8020220650645df497d90d.tar.bz2 |
* DevNotes: Add entry cgf-000014.
* cygheap.cc (tls_sentry): Move here, rename from 'sentry' in cygtls.cc
(tls_sentry::lock): Ditto.
(nthreads): Move from cygtls.cc
(THREADLIST_CHUNK): Ditto.
(cygheap_init): Call init_tls_list().
(init_cygheap::init_tls_list): Define new function.
(init_cygheap::add_tls): Ditto.
(init_cygheap::remove_tls): Ditto.
(init_cygheap::find_tls): Ditto. Semi-resurrect from _cygtls::find_tls.
* cygheap.h (init_cygheap::init_tls_list): Declare new function.
(init_cygheap::add_tls): Ditto.
(init_cygheap::remove_tls): Ditto.
(init_cygheap::find_tls): Ditto.
* cygtls.cc (sentry): Delete.
(sentry::lock): Ditto.
(nthreads): Ditto.
(THREADLIST_CHUNK): Ditto.
(_cygtls::init): Delete definition.
(_cygtls::init_thread): Call cygheap->add_tls() to add thread to global list.
(_cygtls::remove): cygheap->remove_tls() to remove thread from global list.
* cygtls.h (_cygtls::init): Delete declaration.
* dcrt0.cc (dll_crt0_0): Delete call to _cygtls::init().
* exceptions.cc (sigpacket::process): When no thread is specified, try to find
one via cygheap->find_tls.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 7e32de0..0cda2e5 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -773,8 +773,6 @@ dll_crt0_0 () user_data->threadinterface->Init (); - _cygtls::init (); - _main_tls = &_my_tls; /* Initialize signal processing here, early, in the hopes that the creation |