Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Magnus Hagander <mha(at)sollentuna(dot)net>, pgsql-hackers(at)postgresql(dot)org, Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com>
Subject: Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance
Date: 2005-10-23 15:27:10
Message-ID: 435BABCE.5090903@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2005-10-23 16:00:10 Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance
Previous Message Tom Lane 2005-10-23 15:09:41 Call for port reports