make analysis sync

This commit is contained in:
Aleksey Kladov 2018-10-15 22:29:24 +03:00
parent 76c51fae77
commit bbcd998433
4 changed files with 37 additions and 19 deletions

View file

@ -30,6 +30,20 @@ impl salsa::Database for RootDatabase {
}
}
impl salsa::ParallelDatabase for RootDatabase {
fn fork(&self) -> Self {
RootDatabase {
runtime: self.runtime.fork(),
}
}
}
impl Clone for RootDatabase {
fn clone(&self) -> RootDatabase {
salsa::ParallelDatabase::fork(self)
}
}
salsa::database_storage! {
pub(crate) struct RootDatabaseStorage for RootDatabase {
impl FilesDatabase {