Simplify Win32 Signaling code

From: Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu>
To: pgsql-patches(at)postgresql(dot)org
Subject: Simplify Win32 Signaling code
Date: 2005-06-02 13:23:41
Message-ID: Pine.GSO.4.58.0506020921350.20182@dvp.cs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


This patch simplified Win32 signaling code per discussion in hackers. In
this implementation, each process will have a named (by its pid) mutex,
named shared memory area and named event in global namespace. The process
is
sending/receiving signals as the following:

(*) the process who kill the signal:
- Grab the named mutex, set signal bit in target process's shared memory
area and SetEvent(), then it is done;

(*) the process who should receive the signal:
- the main thread of this process could be awakened by the event from
waiting status(like semop()) or CHECK_FOR_INTERRUPTS() actively; -- there
is
no other threads of the process;

Details could be found in this thread and follows:
http://archives.postgresql.org/pgsql-hackers/2005-05/msg01388.php

Regards,
Qingqing

Attachment Content-Type Size
signaling.patch text/plain 21.0 KB

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Hagander 2005-06-02 14:02:47 Re: Simplify Win32 Signaling code
Previous Message Neil Conway 2005-06-02 08:09:22 Re: lastval()