Re: Mixing threaded and non-threaded - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Mixing threaded and non-threaded
Date
Msg-id 200401300918.i0U9IZh27865@candle.pha.pa.us
Whole thread Raw
In response to Re: Mixing threaded and non-threaded  (Manfred Spraul <manfred@colorfullife.com>)
Responses Re: Mixing threaded and non-threaded  (Scott Lamb <slamb@slamb.org>)
List 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@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Question about indexes
Next
From: Karel Zak
Date:
Subject: Re: msg translation into sk_SK, Docs: SGML -> XML