Re: thread_test.c problems - Mailing list pgsql-general

From Bruce Momjian
Subject Re: thread_test.c problems
Date
Msg-id 200404071832.i37IW7C24263@candle.pha.pa.us
Whole thread Raw
In response to thread_test.c problems  (Wes Palmer <Wesley.R.Palmer@syntegra.com>)
List pgsql-general
OK, got it added to CVS.  Thanks.

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

Wes Palmer wrote:
> On 4/7/04 9:22 AM, "Bruce Momjian" <pgman@candle.pha.pa.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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From:
Date:
Subject: Re: thread_test.c problems
Next
From: Bruce Momjian
Date:
Subject: Re: thread_test.c problems