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

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: PostgreSQL Win32 port list <pgsql-hackers-win32(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [pgsql-hackers-win32] [PATCHES] Compiling libpq with VisualC
Date: 2004-06-11 18:17:25
Message-ID: 200406111817.i5BIHPl23473@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32 pgsql-patches

Andreas Pflug wrote:
> 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).

Ewe. Well, I am not excited about adding a thread capability for Win32
that isn't 100% guaranteed to work.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-06-11 18:20:26 Re: [PATCHES] serverlog function (log_destination file)
Previous Message Andreas Pflug 2004-06-11 18:14:07 Re: [pgsql-hackers-win32] [PATCHES] Compiling libpq with VisualC

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Tom Lane 2004-06-11 18:25:48 Re: Fix for erroneous warning on Shutdown
Previous Message Andreas Pflug 2004-06-11 18:14:07 Re: [pgsql-hackers-win32] [PATCHES] Compiling libpq with VisualC

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-06-11 18:20:26 Re: [PATCHES] serverlog function (log_destination file)
Previous Message Andreas Pflug 2004-06-11 18:14:07 Re: [pgsql-hackers-win32] [PATCHES] Compiling libpq with VisualC