mirror of
https://github.com/isar/rusqlite.git
synced 2026-01-22 04:32:26 +08:00
Introduce is_locked
This commit is contained in:
@@ -875,7 +875,10 @@ impl InnerConnection {
|
||||
&mut c_stmt,
|
||||
ptr::null_mut(),
|
||||
);
|
||||
rc = unlock_notify::wait_for_unlock_notify(self.db, rc);
|
||||
if !unlock_notify::is_locked(self.db, rc) {
|
||||
break;
|
||||
}
|
||||
rc = unlock_notify::wait_for_unlock_notify(self.db);
|
||||
if rc != ffi::SQLITE_OK {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user