Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance
Дата
Msg-id 435BABCE.5090903@dunslane.net
обсуждение исходный текст
Ответ на Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance  (Qingqing Zhou <zhouqq@cs.toronto.edu>)
Список pgsql-hackers

Qingqing Zhou wrote:

>>I guess there are several ways to skin this cat - the way I had sort of
>>worked out reading the MSDN docs was to call QueueUserAPC on the timer
>>thread. I'd like to know what Magnus and Merlin especially think out it.
>>
>>    
>>
>I am not sure - does this not require another thread in an alterable
>state?
>
>
>  
>

Maybe, I don't know. My impression from the docs was that the thread 
could call WaitForSingleObjectEx on the timer handle and it would also 
respond to the APC call. But my Windows API knowledge  is not exactly 
large. As long as what you have works it should be OK.

cheers

andrew


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Call for port reports
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance