Обсуждение: pgsql: Simplify Windows implementation of latches.

Поиск
Список
Период
Сортировка

pgsql: Simplify Windows implementation of latches.

От
heikki@postgresql.org (Heikki Linnakangas)
Дата:
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)