Re: SQLite on Tiger - THREADSAFE on or off ?
Re: SQLite on Tiger - THREADSAFE on or off ?
- Subject: Re: SQLite on Tiger - THREADSAFE on or off ?
- From: Chris Hanson <email@hidden>
- Date: Sun, 5 Mar 2006 23:38:10 -0800
On Mar 4, 2006, at 4:42 PM, Mark Gilbert wrote:
I am using LibSQLite3.0.dylib in a multi thread app.
I have encountered problems where access to the database from a
second thread is showing the database as locked.
Are you trying to use the same database handle in multiple threads?
SQLite doesn't support doing so. Using SQLite via per-thread
database handles should work.
After some research it would appear that libsqlite must be compiled
with the THREADSAFE flag set to 1 in order to support multithread
access. It also implied that UNIX distributions may have this set
to 0 by default.
SQLite on Tiger is built with --enable-threadsafe.
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden