OSDN Git Service

* wincap.h (wincaps::has_buggy_thread_startup): Declare.
authorcgf <cgf>
Sun, 19 Sep 2010 20:18:35 +0000 (20:18 +0000)
committercgf <cgf>
Sun, 19 Sep 2010 20:18:35 +0000 (20:18 +0000)
commitb2eb5b098511d0f8a203c55ccb6e64327846ab9c
tree0ad4ea668a5c495152cac2d2bb57aef82614c91e
parentf249e734b2ad703efc5ab95fbaf5ab1855e0fe80
* wincap.h (wincaps::has_buggy_thread_startup): Declare.
(wincapc::has_buggy_thread_startup): Ditto.
* wincap.cc::wincap_*): Accommodate has_buggy_thread_startup.
(wincapc::init): Explicitly turn off has_buggy_thread_startup if not WOW64.
* cygthread.h (cygthread::thread_handle): Declare/define new method.
* dcrt0.cc (_dll_crt0): Don't call __sinit here.
(dll_crt0_0): Don't call sigproc_init during initialization if
wincap.has_buggy_thread_startup().
(dll_crt0_1): Defer sigproc_init to here when
wincap.has_buggy_thread_startup().  Call __sinit after we've determined that
we're not forking.
(__main): Rework comments.  Add potential future reminder.
winsup/cygwin/ChangeLog
winsup/cygwin/cygthread.h
winsup/cygwin/dcrt0.cc
winsup/cygwin/wincap.cc
winsup/cygwin/wincap.h