thread safety tests - Mailing list pgsql-hackers

From Jan Wieck
Subject thread safety tests
Date
Msg-id 40C70CDE.8010109@Yahoo.com
Whole thread Raw
Responses Re: thread safety tests  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
I am wondering why thread_test.c is checking for mktemp()? That function 
is nowhere used in the libpq.

Also, I would suggest that we allow to build the libpq with thread 
specific compiler options, even if it is not entirely thread safe. It 
would require that a really multithreaded application has to have 
mutexes around certain operations, but being entirely unable to 
configure in a way that adds thread compile options to the CFLAGS makes 
libpq completely useless for multithreaded programs on some platforms 
(for example Solaris).


Jan

-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: bug in 7.4 SET WITHOUT OIDs
Next
From: Bruce Momjian
Date:
Subject: Re: Improving postgresql.conf