Thread: pgsql: Improve Windows implementation of WaitLatch/WaitLatchOrSocket.

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(-)