Re: Win32 signal code - first try - Mailing list pgsql-hackers-win32

From Merlin Moncure
Subject Re: Win32 signal code - first try
Date
Msg-id 303E00EBDD07B943924382E153890E5434AA43@cuthbert.rcsinc.local
Whole thread Raw
List pgsql-hackers-win32
> > > > > SleepEx(0,TRUE), or something of the like.

I personally thing WaitForSingleObjectEx() with a dummy handle is the
only option, unless we are actually waiting for multiple objects (it is
much faster than WFMOEx.

> looks as though blocked signals will be forever lost. If I'm right in
my
> recollection, we'll need some way to requeue the APC (which might be
> non-trivial).

Perhaps it would be easier to hold up the QueueAPC with a manual-switch
event object until the signal handler is cleared to run.


Merlin


pgsql-hackers-win32 by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Win32 signal code - first try
Next
From: Claudio Natoli
Date:
Subject: Re: Win32 signal code - first try