Re: Spinlocks and compiler/memory barriers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Spinlocks and compiler/memory barriers
Дата
Msg-id 60825.1403817187@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Spinlocks and compiler/memory barriers  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: Spinlocks and compiler/memory barriers
Список pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> I think we should rework things so that we fall back to
> pg_write_barrier(), (*((volatile slock_t *) (lock)) = 0) instead of what
> we have right now.

Surely it had better be a read barrier as well?  And S_LOCK the same?
        regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Spinlocks and compiler/memory barriers
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: TODO : Allow parallel cores to be used by vacuumdb [ WIP ]