Re: libpq++ and threads

Поиск
Список
Период
Сортировка
От
Тема Re: libpq++ and threads
Дата
Msg-id 23690.195.212.29.98.1014744970.squirrel@webmail.xs4all.nl
обсуждение исходный текст
Ответ на libpq++ and threads  ("Glenn MacGregor" <gtm@oracom.com>)
Список 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




В списке pgsql-interfaces по дате отправления:

Предыдущее
От: "Glenn MacGregor"
Дата:
Сообщение: libpq++ and threads
Следующее
От: "Jeroen T. Vermeulen"
Дата:
Сообщение: libpqxx: improved self-test