Re: gettimeofday cause crash on Windows

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: gettimeofday cause crash on Windows
Дата
Msg-id 18265.1423762964@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: gettimeofday cause crash on Windows  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-bugs
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> I wonder if it would work to set the function initially to the
> initialization function, so that on the first call the Precise version,
> if it exists, is detected (or the stock version otherwise) and set as
> the function to call for later -- without requiring a jump in every
> subsequent execution of gettimeofday(), of course.  The initialization
> function itself would have to return the value returned by
> GetSystemTimePreciseAsFileTime, of course.

+1.  The idea that we are going to alter the calling requirements around a
POSIX-standard function is utterly horrible.  It will break third-party
code, very probably.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: gettimeofday cause crash on Windows
Следующее
От: Andres Freund
Дата:
Сообщение: Re: gettimeofday cause crash on Windows