* sync.cc: Fix comment.
* dll_init.cc (dll_list::reserve_space): Use %p rather than %lx to show reserved space.
This commit is contained in:
parent
480b13a37a
commit
6a28849237
|
@ -1,3 +1,12 @@
|
||||||
|
2011-11-29 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
|
* sync.cc: Fix comment.
|
||||||
|
|
||||||
|
2011-11-29 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
|
* dll_init.cc (dll_list::reserve_space): Use %p rather than %lx to show
|
||||||
|
reserved space.
|
||||||
|
|
||||||
2011-11-29 Christopher Faylor <me.cygwin2011@cgf.cx>
|
2011-11-29 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
* sigproc.cc (remove_proc): Don't terminate the currently executing
|
* sigproc.cc (remove_proc): Don't terminate the currently executing
|
||||||
|
|
|
@ -427,7 +427,7 @@ dll_list::reserve_space ()
|
||||||
{
|
{
|
||||||
for (dll* d = dlls.istart (DLL_LOAD); d; d = dlls.inext ())
|
for (dll* d = dlls.istart (DLL_LOAD); d; d = dlls.inext ())
|
||||||
if (!VirtualAlloc (d->handle, d->image_size, MEM_RESERVE, PAGE_NOACCESS))
|
if (!VirtualAlloc (d->handle, d->image_size, MEM_RESERVE, PAGE_NOACCESS))
|
||||||
fabort ("address space needed by '%W' (%08lx) is already occupied",
|
fabort ("address space needed by '%W' (%p) is already occupied",
|
||||||
d->modname, d->handle);
|
d->modname, d->handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,8 +69,7 @@ muto::~muto ()
|
||||||
|
|
||||||
Note: The goal here is to minimize, as much as possible, calls to the
|
Note: The goal here is to minimize, as much as possible, calls to the
|
||||||
OS. Hence the use of InterlockedIncrement, etc., rather than (much) more
|
OS. Hence the use of InterlockedIncrement, etc., rather than (much) more
|
||||||
expensive OS mutexes. Also note that the only two valid "ms" times are
|
expensive OS mutexes. */
|
||||||
0 and INFINITE. */
|
|
||||||
int
|
int
|
||||||
muto::acquire (DWORD ms)
|
muto::acquire (DWORD ms)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue