Re: Add spin_delay() implementation for Arm in s_lock.h

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Add spin_delay() implementation for Arm in s_lock.h
Дата
Msg-id 20220107033731.hyozebos3ujund3s@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Add spin_delay() implementation for Arm in s_lock.h  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Add spin_delay() implementation for Arm in s_lock.h  ("Blake, Geoff" <blakgeof@amazon.com>)
Re: Add spin_delay() implementation for Arm in s_lock.h  ("Blake, Geoff" <blakgeof@amazon.com>)
Список pgsql-hackers
On 2022-01-06 22:23:38 -0500, Tom Lane wrote:
> No; there's just one spinlock.  I'm re-purposing the spinlock that
> test_shm_mq uses to protect its setup operations (and thereafter
> ignores).

Oh, sorry, misread :(


> AFAICS the N+1 shm_mq instances don't internally contain
> spinlocks; they all use atomic ops.

They contain spinlocks too, and the naming is similar enough that I got
confused:
struct shm_mq
{
    slock_t        mq_mutex;

We don't use them for all that much anymore though...

Greetings,

Andres Freund



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Bugs in pgoutput.c
Следующее
От: Bharath Rupireddy
Дата:
Сообщение: Re: Deduplicate min restart_lsn calculation code