OSDN Git Service

* dcrt0.cc (dll_crt0_0): Move user_data->{resourcelocks,threadinterface}
authorcgf <cgf>
Wed, 5 Apr 2006 16:42:26 +0000 (16:42 +0000)
committercgf <cgf>
Wed, 5 Apr 2006 16:42:26 +0000 (16:42 +0000)
initialization here from dll_crt0_1.
(dll_crt0_1): See above.

winsup/cygwin/ChangeLog
winsup/cygwin/dcrt0.cc

index 77e0497..07bde3b 100644 (file)
@@ -1,3 +1,9 @@
+2006-04-05  Christopher Faylor  <cgf@timesys.com>
+
+       * dcrt0.cc (dll_crt0_0): Move user_data->{resourcelocks,threadinterface}
+       initialization here from dll_crt0_1.
+       (dll_crt0_1): See above.
+
 2006-04-04  Corinna Vinschen  <corinna@vinschen.de>
 
        * net.cc (fdsock): Raise default SO_RCVBUF/SO_SNDBUF buffer sizes to
index 6a6ced9..dcc13d5 100644 (file)
@@ -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);