yahoo / squidb

SquiDB is a SQLite database library for Android and iOS
https://github.com/yahoo/squidb/wiki
Apache License 2.0
1.31k stars 132 forks source link

More minor locking tweaks #134

Closed sbosley closed 8 years ago

sbosley commented 8 years ago

Minor tweaks to be slightly more defensive when we acquire the non-exclusive lock for transactions. If anything goes wrong, we should release the lock before we throw the exception, so that users who are suppressing exceptions at least won't have any chance of deadlock.

jdkoren commented 8 years ago

LGTM