Re: [gnome-db] libgda and threads on different connections
- From: Massimo Corà <maxcvs email it>
- To: Vivien Malerba <vmalerba gmail com>
- Cc: gnome-db list <gnome-db-list gnome org>
- Subject: Re: [gnome-db] libgda and threads on different connections
- Date: Mon, 23 Jun 2008 18:45:17 +0200
Hi Vivien,
Vivien Malerba wrote:
2008/6/23 Massimo Cora' <maxcvs email it>:
Hi,
I'm noticing some problems while using libgda on a program that uses two
different connections [that points to two different dbs].
Theoretically, there should be problems if two threads are using the
same connection, not different ones, right?
That should be the case. Do the 2 connections use the same provider?
If so, there might be some locking to do in the provider's code.
yes, the two connections use the SQLite provider.
I'm already using mutexes to avoid concurrent accesses to the same db on
the same connection, but the best option would probably be that the
library takes care of syncronize the accesses when two connections are
used.
thanks and regards,
Massimo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]