pgsql: Improve Windows implementation of WaitLatch/WaitLatchOrSocket.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve Windows implementation of WaitLatch/WaitLatchOrSocket.
Date: 2012-05-10 17:26:57
Message-ID: E1SSX8j-0004FC-A2@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve Windows implementation of WaitLatch/WaitLatchOrSocket.

Ensure that signal handlers are serviced before this function returns.
This should make the behavior more like Unix. Also, add some more
error checking, and make some other cosmetic improvements.

No back-patch since it's not clear whether this is fixing any live bug
that would affect 9.1. I'm more concerned about 9.2 anyway given our
considerable recent expansions in the usage of WaitLatch.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8ebc908c575b3378c9d4096412d16d91d107311c

Modified Files
--------------
src/backend/port/win32_latch.c | 60 ++++++++++++++++++++++++++--------------
1 files changed, 39 insertions(+), 21 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-05-10 17:36:58 pgsql: Fix Windows implementation of PGSemaphoreLock.
Previous Message Bruce Momjian 2012-05-10 17:16:20 pgsql: New 9.2 SSL parameters are GUC, not libpq, per Magnus's observat