pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rod Taylor <rbt@rbt.ca>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
Cc: PostgreSQL Patches <pgsql-patches@postgresql.org>
Subject: Re: [HACKERS] ECPG thread-safety
Date: 26 May 2003 13:32:03 -0400
Message-ID: <1053970321.10179.13.camel@jester> (raw)
In-Reply-To: <200305261706.h4QH6aB06687@candle.pha.pa.us>
References: <200305261706.h4QH6aB06687@candle.pha.pa.us>

On Mon, 2003-05-26 at 13:06, Bruce Momjian wrote:
> Shridhar Daithankar wrote:
> > On Friday 28 March 2003 21:45, you wrote:
> > > For testing the library, I think it is enough to init an thread attr. like
> > > pthread_init_attr, that should be enough to test header and library.
> > 
> > And compiler flags, I forgot.. -pthread on freeBSD/gcc and -D_REENTRANT on 
> > linux at least. FreeBSD needs _THREAD_SAFE as well IIRC.
> 
> Are you saying FreeBSD actually has a -pthread compiler flag?  And Linux
> needs REENTRANT.  We can do that.  Here is an updated patch.  Of course,
> I need to run autoconf too.

If I'm not mistaken, you use -lpthread on FreeBSD 4.x, and -lc_r on
FreeBSD 5.x.

-- 
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

Attachments:

  signature.asc (application/pgp-signature, 186B) download

view thread (35+ messages)  latest in thread

Message-ID: <1053970321.10179.13.camel@jester>
Permalink:  ../1053970321.10179.13.camel@jester/
Also on:    postgresql.org/message-id/1053970321.10179.13.camel@jester

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: rbt@rbt.ca, pgman@candle.pha.pa.us, shridhar_daithankar@persistent.co.in, pgsql-patches@postgresql.org
  Subject: Re: [HACKERS] ECPG thread-safety
  In-Reply-To: <1053970321.10179.13.camel@jester>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox