* shared.cc (memory_init): Fix comment. Fix indentation.

This commit is contained in:
Christopher Faylor 2010-03-10 15:39:52 +00:00
parent bd3b3783f8
commit c2fe02c48b
2 changed files with 16 additions and 11 deletions

View File

@ -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

View File

@ -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);
@ -447,6 +447,7 @@ memory_init (bool init_cygheap)
installation_root, &installation_key); installation_root, &installation_key);
smi = 1; smi = 1;
} }
InterlockedExchange (&shared_mem_inited, smi); InterlockedExchange (&shared_mem_inited, smi);
break; break;
} }