Skip site navigation (1) Skip section navigation (2)

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 (view raw, whole thread or download thread mbox)
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
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
no other threads of the process;

Details could be found in this thread and follows:


Attachment: signaling.patch
Description: text/plain (21.0 KB)

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group