OSDN Git Service

* cygtls.h: Add more "don't parse this" guards.
authorcgf <cgf>
Sat, 6 Dec 2003 18:08:37 +0000 (18:08 +0000)
committercgf <cgf>
Sat, 6 Dec 2003 18:08:37 +0000 (18:08 +0000)
commitc0dd2687306f7852fa4f14223ca1324c2702f925
tree486d0436d67ca3c967afe5666feac8b30fd40bc8
parentf72d80ea2b5c96a2677490ff5192b083f2568923
* cygtls.h: Add more "don't parse this" guards.
(_threadinfo::init_thread): Rename from 'init'.
(_threadinfo::init): Declare new function.
(_threadinfo::protect_linked_list): Declare new critical section.
* dcrt0.cc (dll_crt0_1): Call init_thread to initialize thread stuff.
(_dll_crt0): Call _threadinfo::init prior to invoking dll_crt0_1.
* exceptions.cc (_threadinfo::init_thread): Rename from 'init'.
(_threadinfo::init): Define new function.  Protect linked list manipulation
with new critical section.
(_threadinfo::call): Reflect function name change.
(_threadinfo::remove): Protect linked list manipulation with new critical
section
* gentls_offsets: Rework to allow multi-line "don't parse this" protection.
* init.cc (dll_entry): Don't remove threads info stuff here since the remove
function uses a critical section which can't be used during thread creation or
destruction.
* thread.cc (pthread::exit): Call _threadinfo remove function here.
winsup/cygwin/ChangeLog
winsup/cygwin/cygtls.h
winsup/cygwin/dcrt0.cc
winsup/cygwin/exceptions.cc
winsup/cygwin/gentls_offsets
winsup/cygwin/init.cc
winsup/cygwin/thread.cc