• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SQLite on Tiger - THREADSAFE on or off ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SQLite on Tiger - THREADSAFE on or off ?


  • Subject: Re: SQLite on Tiger - THREADSAFE on or off ?
  • From: Eric Albert <email@hidden>
  • Date: Sat, 4 Mar 2006 17:14:21 -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.

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.

So... first - is the library included with Tiger THREADSAFE on or off ? My results suggest not.

The version included with Tiger was built with --enable-threadsafe. You can see this at <http://www.opensource.apple.com/darwinsource/10.4.5.ppc/SQLite-28/ Makefile>.


Hope this helps,
Eric

_______________________________________________
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


References: 
 >SQLite on Tiger - THREADSAFE on or off ? (From: Mark Gilbert <email@hidden>)

  • Prev by Date: SQLite on Tiger - THREADSAFE on or off ?
  • Next by Date: Re: missing task_name_t
  • Previous by thread: SQLite on Tiger - THREADSAFE on or off ?
  • Next by thread: Re: SQLite on Tiger - THREADSAFE on or off ?
  • Index(es):
    • Date
    • Thread