Re: pqsignal - to be or (in this case) not to be

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: pqsignal - to be or (in this case) not to be
Дата
Msg-id 303E00EBDD07B943924382E153890E5434AA7A@cuthbert.rcsinc.local
обсуждение исходный текст
Ответ на pqsignal - to be or (in this case) not to be  ("Magnus Hagander" <mha@sollentuna.net>)
Ответы Re: pqsignal - to be or (in this case) not to be
Список pgsql-hackers-win32
Magnus Hagander wrote:
> I guess I've spent too much time listening to people, including
myself,
> assuming how things work without actually testing it.
>
> It turns out that both select() and recv() (and thus, probably send()
as
> well) put the thread in alertable state. This means that while we are
in
> a blocking select() or recv(), *our signals will be delivered using an
> APC*.

Ha!  That makes things easy then, doesn't it!

As for the polling, adding a poll to one or two strategic plaes (like
the I/O subsystem) should cover 99% of the reasonable cases...

Merlin



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

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: pqsignal - to be or (in this case) not to be
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pqsignal - to be or (in this case) not to be