Improve Windows implementation of WaitLatch/WaitLatchOrSocket.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 10 May 2012 17:26:47 +0000 (13:26 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 10 May 2012 17:26:47 +0000 (13:26 -0400)
commit8ebc908c575b3378c9d4096412d16d91d107311c
treea0919af978df6c0229a5555570023fab892c8c89
parent53216e3992665eda1570650f4047efa4202e7173
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.
src/backend/port/win32_latch.c