> On Dec 14, 2017, at 11:17 PM, Ajay Gaonkar <ajaygaonka...@gmail.com> wrote:
> 
> If the above code is fine, then why does the mutex lock initiated at native
> level not getting reflected at Application level?

Your native code opens its own connection to the database. The mutex governs 
access to that database _connection_, not to the database _file_, so it has no 
effect on the connection being used by Java.

If you want to get exclusive access to the database itself, use a transaction.

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

Reply via email to