Re: thread_test.c problems

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Wes Palmer <Wesley(dot)R(dot)Palmer(at)syntegra(dot)com>
Cc: wespvp(at)syntegra(dot)com, PostgreSQL-general <pgsql-general(at)postgresql(dot)org>, joseph speigle <joe(dot)speigle(at)jklh(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: thread_test.c problems
Date: 2004-04-07 18:32:07
Message-ID: 200404071832.i37IW7C24263@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


OK, got it added to CVS. Thanks.

---------------------------------------------------------------------------

Wes Palmer wrote:
> On 4/7/04 9:22 AM, "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
>
> > Are any special thread flags needed? What version of Darwin are you
> > using?
>
> I am running Mac OS X 10.3.3. Uname -a shows that as
>
> Darwin Kernel Version 7.3.0
>
>
>
> I took the flags from the linux version. It appears to work ok - at least
> it compiles and runs ok. I'm not sure how to verify threading is working
> correctly... What I have is:
>
> # Apple's cpp-precomp seems a tad broken, so don't use it
> # (Note: on OS X before 10.2, you might need -traditional-cpp instead)
> CC="$CC -no-cpp-precomp"
>
> # Select appropriate semaphore support
> USE_NAMED_POSIX_SEMAPHORES=1
>
> # tools/thread/thread_test must be run
> THREAD_SUPPORT=yes
> THREAD_CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
> THREAD_LIBS="-lpthread"
>
> STRERROR_THREADSAFE=yes
> GETPWUID_THREADSAFE=yes
> GETHOSTBYNAME_THREADSAFE=yes
>

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

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2004-04-07 18:32:45 Re: thread_test.c problems
Previous Message wespvp 2004-04-07 18:13:27 Re: thread_test.c problems