Re: Need NetBSD thread tester

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Need NetBSD thread tester
Date: 2003-09-12 17:32:28
Message-ID: 183040000.1063387948@lerlaptop-red.iadfw.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

--On Friday, September 12, 2003 13:30:38 -0400 Bruce Momjian
<pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:

> Larry Rosenman wrote:
>> > Wow, that is strange. Someone else told me NetBSD supports threads,
>> > and doesn't need any special compile flags, but of course, it has to
>> > have pthread.h to support threads. NetBSD 1.6.1 is very current, so
>> > it isn't an old OS.
>> >
>> > Can you compile if you remove the pthread.h include? No special
>> > compile flags should be required.
>> Nope......
>>
>>
>> $ vi test*
>> $ cc -O -o test_thread_funcs test_thread_funcs.c
>> test_thread_funcs.c: In function `main':
>> test_thread_funcs.c:50: `pthread_t' undeclared (first use in this
>> function) test_thread_funcs.c:50: (Each undeclared identifier is
>> reported only once test_thread_funcs.c:50: for each function it appears
>> in.)
>> test_thread_funcs.c:50: parse error before `thread1'
>> test_thread_funcs.c:59: `thread1' undeclared (first use in this function)
>> test_thread_funcs.c:60: `thread2' undeclared (first use in this function)
>> $
>
> There a pthrads package you have to install, (pkgsrc/devel/pth):
>
> http://groups.google.com/groups?q=netbsd+threads+pthread.h&start=30&hl=e
> n&lr=&ie=UTF-8&selm=bhio3i%24cnp%241%40FreeBSD.csie.NCTU.edu.tw&rnum=35
>
> Seems 2.0 will have native threads support. Now, how does this relate
> to libc's thread-safeness?
Bruce,
I cc'd you on a note from milo.cirr.com's owner.

That may shed some light.

LER

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas T. Thai 2003-09-12 17:47:54 Re: Need NetBSD thread tester
Previous Message Bruce Momjian 2003-09-12 17:30:38 Re: Need NetBSD thread tester