Re: Mixing threaded and non-threaded
От | Bruce Momjian |
---|---|
Тема | Re: Mixing threaded and non-threaded |
Дата | |
Msg-id | 200401300918.i0U9IZh27865@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: Mixing threaded and non-threaded (Manfred Spraul <manfred@colorfullife.com>) |
Ответы |
Re: Mixing threaded and non-threaded
|
Список | 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 по дате отправления: