Re: Bug#326648: libsqlite3-0: database handles can't be shared among threads any more

2005-09-06 Thread Francesco P. Lovergine
On Tue, Sep 06, 2005 at 04:33:32PM +0200, Florian Weimer wrote: > * Francesco P. Lovergine: > > >> I've looked at the SQLite code and it does this. At the same time, it > >> has to implement recursive locks (which can be entered multiple times > >> by the same locker, hence it embeds a locker ID

Re: Bug#326648: libsqlite3-0: database handles can't be shared among threads any more

2005-09-06 Thread Florian Weimer
* Francesco P. Lovergine: >> I've looked at the SQLite code and it does this. At the same time, it >> has to implement recursive locks (which can be entered multiple times >> by the same locker, hence it embeds a locker ID (the value returned by >> phtread_self) in the lock data structure. This

Re: Bug#326648: libsqlite3-0: database handles can't be shared among threads any more

2005-09-06 Thread Francesco P. Lovergine
On Tue, Sep 06, 2005 at 11:35:50AM +0200, Florian Weimer wrote: > * Francesco P. Lovergine: > > >> SQLite databases (and Subversion repositories) are intended to be > >> opened concurrently by multiple processes. > > > To be more clear: programs which use ordinary file locking to > > syncronize t

Re: Bug#326648: libsqlite3-0: database handles can't be shared among threads any more

2005-09-06 Thread Florian Weimer
* Francesco P. Lovergine: >> SQLite databases (and Subversion repositories) are intended to be >> opened concurrently by multiple processes. > To be more clear: programs which use ordinary file locking to > syncronize threads need to be fixed. I've looked at the SQLite code and it does this. At

Re: Bug#326648: libsqlite3-0: database handles can't be shared among threads any more

2005-09-05 Thread Francesco P. Lovergine
On Mon, Sep 05, 2005 at 03:34:42PM +0200, Florian Weimer wrote: > * Francesco P. Lovergine: > > >> I intended to write the opposite: file locks are a per-process > >> resource in NPTL, so NPTL probably has the problems, and LinuxThreads > >> doesn't. > > > > A question: why using file locking inst

Re: Bug#326648: libsqlite3-0: database handles can't be shared among threads any more

2005-09-05 Thread Francesco P. Lovergine
On Mon, Sep 05, 2005 at 03:42:54PM +0200, Francesco P. Lovergine wrote: > On Mon, Sep 05, 2005 at 03:34:42PM +0200, Florian Weimer wrote: > > * Francesco P. Lovergine: > > > > >> I intended to write the opposite: file locks are a per-process > > >> resource in NPTL, so NPTL probably has the proble

Re: Bug#326648: libsqlite3-0: database handles can't be shared among threads any more

2005-09-05 Thread Francesco P. Lovergine
On Mon, Sep 05, 2005 at 03:34:42PM +0200, Florian Weimer wrote: > * Francesco P. Lovergine: > > >> I intended to write the opposite: file locks are a per-process > >> resource in NPTL, so NPTL probably has the problems, and LinuxThreads > >> doesn't. > > > > A question: why using file locking inst

Re: Bug#326648: libsqlite3-0: database handles can't be shared among threads any more

2005-09-05 Thread Florian Weimer
* Francesco P. Lovergine: >> I intended to write the opposite: file locks are a per-process >> resource in NPTL, so NPTL probably has the problems, and LinuxThreads >> doesn't. > > A question: why using file locking instead of thread mutexes (which > is the proper answer to syncronization issues i

Re: Bug#326648: libsqlite3-0: database handles can't be shared among threads any more

2005-09-05 Thread Francesco P. Lovergine
On Sun, Sep 04, 2005 at 10:07:56PM +0200, Florian Weimer wrote: > * Florian Weimer: > > > * Adeodato Simó: > > > >> Also, I have no idea what's the case for Debian: "On some versions of > >> Linux, a thread is not able to override locks created by a different > >> thread in the same process.

Re: Bug#326648: libsqlite3-0: database handles can't be shared among threads any more

2005-09-04 Thread Florian Weimer
* Florian Weimer: > * Adeodato Simó: > >> Also, I have no idea what's the case for Debian: "On some versions of >> Linux, a thread is not able to override locks created by a different >> thread in the same process." Does this depend on the kernel, on libc, >> or on something else? > > This

Re: Bug#326648: libsqlite3-0: database handles can't be shared among threads any more

2005-09-04 Thread Florian Weimer
* Adeodato Simó: > Also, I have no idea what's the case for Debian: "On some versions of > Linux, a thread is not able to override locks created by a different > thread in the same process." Does this depend on the kernel, on libc, > or on something else? This is probably the same problem