pgsql: Simplify Windows implementation of latches.

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Simplify Windows implementation of latches.
Date: 2010-09-15 10:06:21
Message-ID: 20100915100621.9E5A67541E2@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/port:
unix_latch.c (r1.3 -> r1.4)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/port/unix_latch.c?r1=1.3&r2=1.4)
win32_latch.c (r1.1 -> r1.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/port/win32_latch.c?r1=1.1&r2=1.2)
pgsql/src/backend/storage/ipc:
ipci.c (r1.105 -> r1.106)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/ipci.c?r1=1.105&r2=1.106)
pgsql/src/include/storage:
latch.h (r1.1 -> r1.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/storage/latch.h?r1=1.1&r2=1.2)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2010-09-15 10:35:05 pgsql: Use a latch to make startup process wake up and replay
Previous Message Heikki Linnakangas 2010-09-15 06:51:19 pgsql: Don't call OwnLatch while holding a spinlock.