I'm building a custom library wrapper for Cocoa. I want to handle database 
threading issue myself.

>From http://sqlite.org/compile.html#threadsafe:

[quote]
When compiled with SQLITE_THREADSAFE=2, SQLite can be used in a multithreaded 
program so long as no two threads attempt to use the same database connection 
(or any prepared statements derived from that database connection) at the same 
time.
[/quote]

I have two questions:

1. Does SQLITE_THREADSAFE only and solely affects struct sqlite3* and 
sqlite3_stmt* related API calls?
2. Are sqlite3_config(SQLITE_CONFIG_MULTITHREAD) and SQLITE_OPEN_NOMUTEX does 
the same thing as SQLITE_THREADSAFE=2 define?

                                          
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to