×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Is SQLite thread-safe?

    The Qt documentation only says this, which is not real informative:
    A connection can only be used from within the thread that created it. Moving connections between threads or creating queries from a different thread is not supported.

    In addition, the third party libraries used by the QSqlDrivers can impose further restrictions on using the SQL Module in a multithreaded program. Consult the manual of your database client for more information

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Is SQLite thread-safe?

    And I get this off the SQLite site:
    SQLite is threadsafe. We make this concession since many users choose to ignore the advice given in the previous paragraph. But in order to be thread-safe, SQLite must be compiled with the SQLITE_THREADSAFE preprocessor macro set to 1. Both the Windows and Linux precompiled binaries in the distribution are compiled this way. If you are unsure if the SQLite library you are linking against is compiled to be threadsafe you can call the sqlite3_threadsafe() interface to find out.
    Seems like a "definite maybe".

Similar Threads

  1. s60 5th emulator cannot be launched
    By computerxt in forum Symbian Tools & SDKs
    Replies: 9
    Last Post: 2010-02-02, 12:54
  2. N97 SDK emulator can not start
    By cfnjucs in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2010-01-03, 06:19
  3. ekern.exe error
    By cruser11232 in forum Open C/C++
    Replies: 5
    Last Post: 2009-11-21, 07:25
  4. S60 5th Edition SDK, EMULATOR crashing
    By zoiks_guy in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2009-01-16, 05:37
  5. Need Help with thread
    By gigglie in forum Symbian
    Replies: 0
    Last Post: 2008-06-20, 06:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×