Status of 64 bit atomics

Поиск
Список
Период
Сортировка
От John Gorman
Тема Status of 64 bit atomics
Дата
Msg-id CALkS6B8N6uf7PNPjv6bKTaPhh4qVoRg46bSNr0Hhy2BGnBwYNQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Status of 64 bit atomics  (Arthur Silva <arthurprs@gmail.com>)
Re: Status of 64 bit atomics  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Hi All

Someone recently told me that the postgresql atomics library was incomplete
for 64 bit operations such as pg_atomic_fetch_add_u64() and should not be used.

Can someone definitively confirm whether it is okay to rely on the 64 bit atomics
or whether it is better to protect 64 bit operations with a spinlock?

Thanks!
John

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Kevin Grittner
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fix a typo in 9.6 release notes