Improve Windows implementation of WaitLatch/WaitLatchOrSocket.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 8ebc908c575b3378c9d4096412d16d91d107311c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-05-10T17:26:47Z
Releases: 9.2.0
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.

Files

PathChange+/−
src/backend/port/win32_latch.c modified +39 −21