Re: Win32 signals code, take two

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Win32 signals code, take two
Дата
Msg-id 303E00EBDD07B943924382E153890E5434AA65@cuthbert.rcsinc.local
обсуждение исходный текст
Ответ на Win32 signals code, take two  ("Magnus Hagander" <mha@sollentuna.net>)
Список pgsql-hackers-win32
Magnus Hagander wrote:
> Here's an updated version of the proposed win32 signals code, with the
> following main changes:

One small possible revision to consider:  As I read the code, all
manipulation to pg_signal_queue is inside a CriticalSection, and it is
only set (> 0) when there are pending signals.

ISTM that pg_queue_signal can abort without calling QueueUserAPC
pg_signal_queue is already set.  This will keep the dispatch function
from getting called extra times.  Paranoia statement

pg_signal_queue = 0;

could possibly be added at the end of the dispatch.

Everything else looks good to me.  Looking at the code, pg_signal_queue
is better and simpler than the event based method I was suggesting, IMO.

Merlin

В списке pgsql-hackers-win32 по дате отправления:

Предыдущее
От: Claudio Natoli
Дата:
Сообщение: Re: Win32 signals code, take two
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Win32 signals code, take two