pg_usleep for multisecond delays

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема pg_usleep for multisecond delays
Дата
Msg-id 20230209205929.GA720594@nathanxps13
обсуждение исходный текст
Ответы Re: pg_usleep for multisecond delays  (Andres Freund <andres@anarazel.de>)
Re: pg_usleep for multisecond delays  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
I just found myself carefully counting the zeros in a call to pg_usleep().
Besides getting my eyes checked, perhaps there should be a wrapper called
pg_ssleep() than can be used for multisecond sleeps.  Or maybe the
USECS_PER_SEC macro should be used more widely.  I attached a patch for the
former approach.  I don't have a strong opinion, but I do think it's worth
improving readability a bit here.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Minor meson gripe
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Importing pg_bsd_indent into our source tree