pgsql: Simplify Windows implementation of latches. - Mailing list pgsql-committers

From heikki@postgresql.org (Heikki Linnakangas)
Subject pgsql: Simplify Windows implementation of latches.
Date
Msg-id 20100915100621.9E5A67541E2@cvs.postgresql.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: heikki@postgresql.org (Heikki Linnakangas)
Date:
Subject: pgsql: Don't call OwnLatch while holding a spinlock.
Next
From: heikki@postgresql.org (Heikki Linnakangas)
Date:
Subject: pgsql: Use a latch to make startup process wake up and replay