OSDN Git Service

Simplify Windows implementation of latches. There's no need to keep a
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 15 Sep 2010 10:06:21 +0000 (10:06 +0000)
committerMasaoFujii <masao.fujii@gmail.com>
Thu, 7 Oct 2010 10:48:06 +0000 (19:48 +0900)
commitb23138a5cf3243223d8cce4fa876c276880216dc
treeb6248d3f3980c6c59e0ba2dfbe8e2fb1414c2974
parent174215826d65f8922a54750252e3c49fe5bb390e
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.
src/backend/port/unix_latch.c
src/backend/port/win32_latch.c
src/backend/storage/ipc/ipci.c
src/include/storage/latch.h