summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-03-06 20:21:30 +0000
committerChristopher Faylor <me@cgf.cx>2005-03-06 20:21:30 +0000
commit3f02a8d0f4ca99d7e82fb678db8d50819ce4156e (patch)
tree4a286194ec404b446526d9c27542eea27ac01aab /winsup/cygwin/dcrt0.cc
parenta50b6b2dcd76cfb494617c37f93ebed175d60560 (diff)
downloadcygnal-3f02a8d0f4ca99d7e82fb678db8d50819ce4156e.tar.gz
cygnal-3f02a8d0f4ca99d7e82fb678db8d50819ce4156e.tar.bz2
cygnal-3f02a8d0f4ca99d7e82fb678db8d50819ce4156e.zip
* sync.h (sync::init_lock): Declare new static member.
(sync::init()): Declare new static function. * sync.cc (sync::init): Define. (sync::init): Lock attempt to initialize a muto to stop multiple threads from colliding. * dcrt0.cc (dll_crt0_0): Initialize muto environment.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index df639c20f..b269b21d1 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -574,6 +574,7 @@ void __stdcall
dll_crt0_0 ()
{
wincap.init ();
+ muto::init ();
initial_env ();
char zeros[sizeof (child_proc_info->zero)] = {0};