Re: Signals on Win32 (yet again) - Mailing list pgsql-hackers-win32

From Steve Tibbett
Subject Re: Signals on Win32 (yet again)
Date
Msg-id 546CD3100F4C0F42A30A94C0F2B349148FC76A@zimmail1.zim.zimismobile.com
Whole thread Raw
In response to Signals on Win32 (yet again)  ("Magnus Hagander" <mha@sollentuna.net>)
Responses Re: Signals on Win32 (yet again)
List pgsql-hackers-win32
>Maybe. I'm not quite convinced of that yet - we can SleepEx with
>a very small timeout, no? There must be a few critical places the
>call could be made, which would in effect just delay delivery of
>the signal for a very short time to some convenient sequence point.

FWIW that method gets my vote - calling SleepEx(0) in some critical
places; I believe that will yield the CPU but not wait any time (so if
nothing else wants the CPU and there aren't any procedures that need
calling then it amounts to a no-op).

Using a driver to do this is killing an ant with a hammer, no matter
that we find the ant somewhat irritating.. :)

 - Steve



pgsql-hackers-win32 by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Signals on Win32 (yet again)
Next
From: "Merlin Moncure"
Date:
Subject: Re: Signals on Win32 (yet again)