Re: WaitForMultipleObjects in C Extension

From: George Neuner <gneuner2(at)comcast(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: WaitForMultipleObjects in C Extension
Date: 2020-01-14 16:58:47
Message-ID: f5sr1fpb0tatl1mepbptkj6dhu9ej28m03@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 14 Jan 2020 10:35:09 +0300, ?lyas Derse <ilyasderse(at)gmail(dot)com>
wrote:

> Hi guys I need your experiences. I made an Extension in C. When I stop the
>query on PostgreSQL,I want to control my extension's result with use cases
>in C.So I think , I should use WaitForMultipleObjects.

Not really understanding this.

>Is there a like a SignalObjectHandle() ? By the way I'm using Windows.

Not exactly. Windows does has some signaling objects like Unix/Linux,
but they exist only in the filesystem and network stack, and they are
signaled only by events within those subsystems. IOW, they can't be
signaled manually.

For general communication/synchronization purposes Windows uses an
event based notification system. See:
https://docs.microsoft.com/en-us/windows/win32/sync/using-synchronization
https://docs.microsoft.com/en-us/windows/win32/sync/using-event-objects

George

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Israel Brewster 2020-01-14 17:02:35 Re: Worse performance with higher work_mem?
Previous Message Adrian Klaver 2020-01-14 16:53:32 Re: Error retrieving PostgreSQL DB information with Coturn