Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance
Date
Msg-id 435BABCE.5090903@dunslane.net
Whole thread Raw
In response to Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance  (Qingqing Zhou <zhouqq@cs.toronto.edu>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Call for port reports
Next
From: "Magnus Hagander"
Date:
Subject: Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance