* 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.
This commit is contained in:
Christopher Faylor
2005-03-06 20:21:30 +00:00
parent a50b6b2dcd
commit 3f02a8d0f4
3 changed files with 25 additions and 7 deletions

View File

@@ -574,6 +574,7 @@ void __stdcall
dll_crt0_0 ()
{
wincap.init ();
muto::init ();
initial_env ();
char zeros[sizeof (child_proc_info->zero)] = {0};