Simplify Windows implementation of latches. There's no need to keep a

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 236b6bc29e532822a366b56404ecaf1d906229bf
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2010-09-15T10:06:21Z
Releases: 9.1.0
Simplify Windows implementation of latches. There's no need to keep a
dynamic pool of event handles, we can permanently assign one for each
shared latch. Thanks to that, we no longer need a separate shared memory
block for latches, and we don't need to know in advance how many shared
latches there is, so you no longer need to remember to update
NumSharedLatches when you introduce a new latch to the system.

Files

PathChange+/−
src/backend/port/unix_latch.c modified +5 −26
src/backend/port/win32_latch.c modified +31 −117
src/backend/storage/ipc/ipci.c modified +1 −4
src/include/storage/latch.h modified +2 −6