Re: Mixing threaded and non-threaded

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Manfred Spraul <manfred(at)colorfullife(dot)com>
Cc: Steve Atkins <steve(at)blighty(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Mixing threaded and non-threaded
Date: 2004-01-30 09:18:34
Message-ID: 200401300918.i0U9IZh27865@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Manfred Spraul wrote:
> Bruce Momjian wrote:
>
> >Woh, as far as I know, any application should run fine with -lpthread,
> >threaded or not. What OS are you on? This is the first I have heard of
> >this problem.
> >
> >
> Perhaps we should try to figure out how other packages handle
> multithreaded/singlethreaded libraries? I'm looking at openssl right
> now, and openssl never links against libpthread: The caller is
> responsible for registering the locking primitives.

We perhaps don't need -lpthread for creating libpq, but only for ecpg.
However, now that we have used thread locking for SIGPIPE, we are now
calling pthread from libpq, but only 7.5.

However, I still don't understand why the user is seeing a problem and
what rewrite he thinks is necessary for his application because pthread
is linked in.

--
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Karel Zak 2004-01-30 09:42:04 Re: msg translation into sk_SK, Docs: SGML -> XML
Previous Message Greg Stark 2004-01-30 06:16:21 Re: Question about indexes