Got confused. if I have SQLITE_THREADSAFE=2, do I need to implement mutex proection around this function call?
---------------------------------------- > From: [email protected] > Date: Thu, 4 Sep 2014 10:18:29 -0400 > To: [email protected] > Subject: Re: [sqlite] SQLITE_THREADSAFE question > > On Thu, Sep 4, 2014 at 10:14 AM, Neo Anderson <[email protected]> wrote: > >> >> 2. Fuctions that do not use sqlite3* and sqite3_stmt* such as >> sqlite3_mprintf do not need mutex protection. >> > > No. sqlite3_mprintf() does require mutex protection. If you disable > mutexes using SQLITE_THREADSAFE=0 and then try to use sqlite3_mprintf() > from multiple threads, you will encounter problems. > > -- > D. Richard Hipp > [email protected] > _______________________________________________ > sqlite-users mailing list > [email protected] > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

