Re: [pgsql-hackers-win32] [PATCHES] Compiling libpq with VisualC

Поиск
Список
Период
Сортировка
От Andreas Pflug
Тема Re: [pgsql-hackers-win32] [PATCHES] Compiling libpq with VisualC
Дата
Msg-id 40C9F66F.80805@pse-consulting.de
обсуждение исходный текст
Ответ на Re: [PATCHES] Compiling libpq with VisualC  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [pgsql-hackers-win32] [PATCHES] Compiling libpq with VisualC  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian wrote:

>
>What is the recommended way to create mutex objects (CreateMutex) from
>Win32 libraries?  There must be a clean way like there is in pthreads.
>

It's having a central one-time called routine executing CreateMutex.
This can be DllMain, *if* used as DLL, but that's certainly no solution
for static linkage. This would require some PQinitThreadStuff() routine,
which may be called only once (and ultimately can't check for that
itself, if you don't trust a static var).

Regards,
Andreas



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

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Re: [PATCHES] serverlog function (log_destination file)
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [pgsql-hackers-win32] [PATCHES] Compiling libpq with VisualC