Skip site navigation (1) Skip section navigation (2)

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

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
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:14:07
Message-ID: 40C9F66F.80805@pse-consulting.de (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-hackers-win32pgsql-patches
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



In response to

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2004-06-11 18:17:25
Subject: Re: [pgsql-hackers-win32] [PATCHES] Compiling libpq with VisualC
Previous:From: Andreas PflugDate: 2004-06-11 18:07:02
Subject: Re: [PATCHES] serverlog function (log_destination file)

pgsql-patches by date

Next:From: Bruce MomjianDate: 2004-06-11 18:17:25
Subject: Re: [pgsql-hackers-win32] [PATCHES] Compiling libpq with VisualC
Previous:From: Andreas PflugDate: 2004-06-11 18:07:02
Subject: Re: [PATCHES] serverlog function (log_destination file)

pgsql-hackers-win32 by date

Next:From: Bruce MomjianDate: 2004-06-11 18:17:25
Subject: Re: [pgsql-hackers-win32] [PATCHES] Compiling libpq with VisualC
Previous:From: Bruce MomjianDate: 2004-06-11 18:04:23
Subject: Re: pg_ctl using START with paths needing quotes

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group