Search Postgresql Archives

Re: thread_test.c problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



wespvp@syntegra.com wrote:
> [Sorry about the duplicate]
> 
> 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

If the thread_test program works, then threads are working on your
platform.

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

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux