Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-07-31 00:50:23 +0400
committerChristopher Faylor <me@cgf.cx>2011-07-31 00:50:23 +0400
commit53ad6f1394aa625e4b75a29e010651e22770e367 (patch)
tree55b4385d09ada46d2b4966c726f946c444544504 /winsup/cygwin/dcrt0.cc
parentf7e198a665edf1b4d553be353999b4e1b7075c3a (diff)
* cygthread.cc (cygthread::async_create): Define new function.
* cygthread.h (cygthread::create): Use correct regparm. (cygthread::standalone): Delete from class and from all constructors. (cygthread::cygthread): Use three only arguments for detached threads, and start the thread via QueueUserAPC/async_create. * dcrt0.cc (dll_crt0_0): Remove handling for wincap.has_buggy_thread_startup. (dll_crt0_1): Ditto. * wincap.cc: Ditto throughout. * wincap.h: Ditto.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 017faa692..32a5bc1d6 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -709,7 +709,7 @@ dll_crt0_0 ()
/* Initialize signal processing here, early, in the hopes that the creation
of a thread early in the process will cause more predictability in memory
layout for the main thread. */
- if (!wincap.has_buggy_thread_startup () && !dynamically_loaded)
+ if (!dynamically_loaded)
sigproc_init ();
debug_printf ("finished dll_crt0_0 initialization");
@@ -724,8 +724,9 @@ dll_crt0_1 (void *)
{
extern void initial_setlocale ();
- if (wincap.has_buggy_thread_startup () || dynamically_loaded)
+ if (dynamically_loaded)
sigproc_init ();
+
check_sanity_and_sync (user_data);
/* Initialize malloc and then call user_shared_initialize since it relies