* shared.cc (memory_init): Fix comment. Fix indentation.
This commit is contained in:
parent
bd3b3783f8
commit
c2fe02c48b
|
@ -1,3 +1,7 @@
|
||||||
|
2010-03-10 Christopher Faylor <me.cygwin@cgf.cx>
|
||||||
|
|
||||||
|
* shared.cc (memory_init): Fix comment. Fix indentation.
|
||||||
|
|
||||||
2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
|
2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
* shared_info.h (open_shared): Create function wrapper for common use
|
* shared_info.h (open_shared): Create function wrapper for common use
|
||||||
|
|
|
@ -417,7 +417,7 @@ memory_init (bool init_cygheap)
|
||||||
cygheap->user.init ();
|
cygheap->user.init ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize general shared memory */
|
/* Initialize general shared memory under spinlock control */
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
LONG smi = InterlockedExchange (&shared_mem_inited, -1);
|
LONG smi = InterlockedExchange (&shared_mem_inited, -1);
|
||||||
|
@ -437,16 +437,17 @@ memory_init (bool init_cygheap)
|
||||||
cygwin_shared_h,
|
cygwin_shared_h,
|
||||||
sizeof (*cygwin_shared),
|
sizeof (*cygwin_shared),
|
||||||
SH_CYGWIN_SHARED);
|
SH_CYGWIN_SHARED);
|
||||||
if (!smi)
|
if (!smi)
|
||||||
{
|
{
|
||||||
cygwin_shared->initialize ();
|
cygwin_shared->initialize ();
|
||||||
/* Defer debug output printing the installation root and installation key
|
/* Defer debug output printing the installation root and installation key
|
||||||
up to this point. Debug output except for system_printf requires
|
up to this point. Debug output except for system_printf requires
|
||||||
the global shared memory to exist. */
|
the global shared memory to exist. */
|
||||||
debug_printf ("Installation root: <%W> key: <%S>",
|
debug_printf ("Installation root: <%W> key: <%S>",
|
||||||
installation_root, &installation_key);
|
installation_root, &installation_key);
|
||||||
smi = 1;
|
smi = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
InterlockedExchange (&shared_mem_inited, smi);
|
InterlockedExchange (&shared_mem_inited, smi);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue