Re: [gnome-db] libgda and threads on different connections



2008/6/23 Massimo Cora' <maxcvs email it>:
> Hi Vivien,
>
>
> Massimo Corà wrote:
>>
>> 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.
>>
>
> it crashes even if I share the mutexes, i.e. only one mutex for the two
> connections and just a statement executed exclusively. Seems like [just
> a feeling, I have not checked] that something static is used in provider
> or in some context.

I've just made some corrections, and now using connections in threads
should work as long as the same object is not used by 2 different
threads. Could you test that it works for you?

Vivien


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]