Re: [HACKERS] [PATCHES] fork/exec patch - Mailing list pgsql-hackers-win32

From Andrew Dunstan
Subject Re: [HACKERS] [PATCHES] fork/exec patch
Date
Msg-id 3FDF6916.8020901@dunslane.net
Whole thread Raw
In response to Re: [HACKERS] [PATCHES] fork/exec patch  ("Steve Tibbett" <stibbett@zim.biz>)
List pgsql-hackers-win32
Steve Tibbett wrote:

>>Isn't WaitForSingleObject() in effect a polling call?
>>
>>
>
>It puts your thread to sleep, until it gets woken up by the handle
>you're waiting on being set to a signalled state.
>
>
>

Right. Just like select() puts your thread to sleep until one of its
files is ready (or it times out).

Do we have a terminology problem here?

The point is that, unlike classic Unix signal programming, you need
*something* that explicitly checks for the event. It could be a separate
thread in a tight loop, which is what the CONNX code appears to do, or
it could conceivably be something else in the main thread with a very
short timeout.

cheers

andrew




pgsql-hackers-win32 by date:

Previous
From: "Steve Tibbett"
Date:
Subject: Re: [HACKERS] [PATCHES] fork/exec patch
Next
From: "Merlin Moncure"
Date:
Subject: Re: [HACKERS] [PATCHES] fork/exec patch