sqlite3_mutex_enter(mutex); //DATABASE LOCKED, So nobody should be able to
access this database until its closed gracefully right???
// Sleep OR Wait for some time for testing the DB in Application Layer
sleep(120); // wait()
When the Native code is in waiting (or in sleep(120)), if Application tries
to update the same Database. Whats should be the ideal behavior?
I found that even after mutex lock in native, Application is still able to
access the database (which is not released in native layer). Ideally when
the database is locked, it should not be accessed from anywhere right?
Is there something wrong with my native code in mutex lock?
If the above code is fine, then why does the mutex lock initiated at native
level not getting reflected at Application level?