|
@@ -205,8 +205,9 @@ pub struct DBPool<'a> {
|
|
// however we assume sqlite is operating in serialized mode, which means
|
|
// however we assume sqlite is operating in serialized mode, which means
|
|
// that it is in fact both `Send` and `Sync`
|
|
// that it is in fact both `Send` and `Sync`
|
|
db: &'a DB,
|
|
db: &'a DB,
|
|
- // we carefully maintain the invariant here that only the thread with the
|
|
|
|
- // given `ThreadId` accesses the QueryInterface part of the pair
|
|
|
|
|
|
+ // we carefully maintain the invariant here that only the thread with the given `ThreadId`
|
|
|
|
+ // accesses the QueryInterface part of the pair, which means that despite the fact that
|
|
|
|
+ // QueryInterface is neither Send nor Sync can be dismissed in this Send and Sync container
|
|
qi: std::sync::RwLock<Vec<(std::thread::ThreadId, &'a QueryInterface<'a>)>>,
|
|
qi: std::sync::RwLock<Vec<(std::thread::ThreadId, &'a QueryInterface<'a>)>>,
|
|
}
|
|
}
|
|
|
|
|