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>2006-04-05 20:42:27 +0400
committerChristopher Faylor <me@cgf.cx>2006-04-05 20:42:27 +0400
commit0ce97eb453a1e89b6df41b25fac900e60d6c2903 (patch)
tree9795a188161073f9dca8f91891318ab412e59781 /winsup/cygwin/dcrt0.cc
parent3728ca65381bdcbfe2f87b8710dd4e5c651cfae9 (diff)
* dcrt0.cc (dll_crt0_0): Move user_data->{resourcelocks,threadinterface}
initialization here from dll_crt0_1. (dll_crt0_1): See above.
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 6a6ced98a..dcc13d528 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -755,6 +755,9 @@ dll_crt0_0 ()
}
}
+ user_data->resourcelocks->Init ();
+ user_data->threadinterface->Init ();
+
_cygtls::init ();
/* Initialize events */
@@ -792,8 +795,6 @@ dll_crt0_1 (char *)
small_printf ("cmalloc returns %p\n", cmalloc (HEAP_STR, n));
#endif
- user_data->resourcelocks->Init ();
- user_data->threadinterface->Init ();
ProtectHandle (hMainProc);
ProtectHandle (hMainThread);