Got confused. if I have SQLITE_THREADSAFE=2, do I need to implement mutex 
proection around this function call?

----------------------------------------
> From: d...@sqlite.org
> Date: Thu, 4 Sep 2014 10:18:29 -0400
> To: sqlite-users@sqlite.org
> Subject: Re: [sqlite] SQLITE_THREADSAFE question
>
> On Thu, Sep 4, 2014 at 10:14 AM, Neo Anderson <neo_in_mat...@msn.com> 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
> d...@sqlite.org
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
                                          
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to