Re: libpq++ and threads

From: <jtv(at)xs4all(dot)nl>
To: <gtm(at)oracom(dot)com>
Cc: <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: libpq++ and threads
Date: 2002-02-26 17:36:10
Message-ID: 23690.195.212.29.98.1014744970.squirrel@webmail.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

> I am new to libpq++ so if this was asked already I am sorry (I have
> searched the logs). I have written a threaded app which I am moving to
> interface with a postgres database. Tha app receives messages and
> passes each message to a thread with inserts or updates the database.
> I have one pgDatabase object which all the threads use. Can these
> threads all access that object or do I need to syncronize them?

That's strictly a libpq issue; libpq++ builds on top of that, but doesn't
add any threading problems on top of that that I'm aware of. So if it
works under libpq, it's going to work on libpq++ and vice versa. (Unless
I'm very much mistaken, of course.)

Jeroen

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2002-02-26 17:50:17 Re: archives.postgresql.org
Previous Message Stephan Szabo 2002-02-26 17:18:04 Re: Need help with a trigger

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tim Barnard 2002-02-26 18:56:18 Re: libpq++ and threads
Previous Message Andreas Kretzer 2002-02-26 12:03:13 Re: pgaccess