From: | Larry Rosenman <ler(at)lerctr(dot)org> |
---|---|
To: | "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: threads stuff/UnixWare |
Date: | 2004-05-12 18:43:16 |
Message-ID: | BE63BD4A58F76A7D9B05D34C@lerlaptop.lerctr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
--On Wednesday, May 12, 2004 15:39:34 -0300 "Marc G. Fournier"
<scrappy(at)postgresql(dot)org> wrote:
> On Wed, 12 May 2004, Larry Rosenman wrote:
>
>>
>>
>> --On Wednesday, May 12, 2004 15:02:30 -0300 "Marc G. Fournier"
>> <scrappy(at)postgresql(dot)org> wrote:
>>
>> > On Wed, 12 May 2004, Larry Rosenman wrote:
>> >
>> >>
>> >>
>> >> --On Wednesday, May 12, 2004 14:14:30 -0300 "Marc G. Fournier"
>> >> <scrappy(at)postgresql(dot)org> wrote:
>> >>
>> >> > On Wed, 12 May 2004, Larry Rosenman wrote:
>> >> >
>> >> >> I'd LIKE to be able to have PG wrappers for those functions, and
>> >> >> have the first invocation of them look via dlsym() for the real
>> >> >> ones, and if they are NOT there, use fake functions that assume we
>> >> >> are NOT threaded.
>> >> >
>> >> > Wouldn't it be easier to have a #define?
>> >> >
>> >> > Correct me if I'm wrong here, but the problem is that we are
>> >> > expecting thread functinos to be called x_, while Unixware defines
>> >> > them as pthread_, right? so make Unixware specific #defines that
>> >> > map x_ to pthread_ ...
>> >> No, we are expecting them to have pthread_*.
>> >>
>> >> On UnixWare, to get the pthread_* functions, you need to invoke a
>> >> compiler option (-Kpthread), to cause libpthread to be linked in.
>> >>
>> >> Since libpq.so now REQUIRES the function, we need to either:
>> >>
>> >> 1) force ANY program that uses libpq to be compiled/linked with
>> >> -Kpthread
>> >
>> > Ummm, shouldn't that be added to the port specific Makefile?
>> See my reply to Tom. It forces ALL libpq using programs to be
>> linked with -Kpthread, which was deemed unacceptable.
>
> deemed unacceptable by whom? Sounds to me alot simpler of a solution then
> making wrappers for the pthread_* functions just to accommodate one OS ...
> I could see it if this was a wide-spread problem, but it doesn't appear to
> be ...
Bruce didn't want to muck ip all the .c programs in the distribution to
do that.
As well as any users using libpq.
I'm all ears if the COMMUNITY wants to do it.
LER
>
> ----
> Marc G. Fournier Hub.Org Networking Services
> (http://www.hub.org) Email: scrappy(at)hub(dot)org Yahoo!: yscrappy
> ICQ: 7615664
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
From | Date | Subject | |
---|---|---|---|
Next Message | Marc G. Fournier | 2004-05-12 18:59:19 | Re: threads stuff/UnixWare |
Previous Message | Marc G. Fournier | 2004-05-12 18:39:34 | Re: threads stuff/UnixWare |