Re: Win32 signal code - first try

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Win32 signal code - first try
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE2A6B04@algol.sollentuna.se
обсуждение исходный текст
Список pgsql-hackers-win32
> > It is if you use WaitForMultipleObjectsEx(). Or if you use
> > WSAEventSelect() and then WaitForSingleObjectEx() on the
> event (this
> > emulates select() the closest)
>
> I'd just as soon as avoid WSAEventSelect; I think that will
> complicate matters quite a bit.
>
> FWIW, in a multithreaded version of postgres I'm fooling
> around with, I replaced the recv call (where backends spend
> most of their time waiting) which a select(small
> timeout)/SleepEx(0) "busy" loop, which calls to recv when
> ready. Works just fine.

It's probably not quite as fast, but that's not the point where we need
to go for max performance. It's probably an easier and smaller changes,
yes, so this looks like a good way. If it turns out bad we can always
change it later, and in that case it's good to have started with the
easy implementation :-)

//Magnus

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

Предыдущее
От: Claudio Natoli
Дата:
Сообщение: Re: Win32 signal code - first try
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Microsoft releses Services for Unix