Make Module impl Send

Also introduce a dedicated feature for series virtual table.
This commit is contained in:
gwenn
2019-07-11 19:21:54 +02:00
parent 547fb031ff
commit 30b41bed20
3 changed files with 6 additions and 2 deletions

View File

@@ -67,6 +67,7 @@ pub struct Module<T: VTab> {
phantom: PhantomData<T>,
}
unsafe impl<T: VTab> Send for Module<T> {}
unsafe impl<T: VTab> Sync for Module<T> {}
/// Create a read-only virtual table implementation.
@@ -984,7 +985,7 @@ fn mprintf(err_msg: &str) -> *mut c_char {
pub mod array;
#[cfg(feature = "csvtab")]
pub mod csvtab;
#[cfg(feature = "bundled")]
#[cfg(feature = "series")]
pub mod series; // SQLite >= 3.9.0
#[cfg(test)]