mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-08-15 00:00:49 +00:00
replace arc-swap
with manual AtomicPtr
This commit is contained in:
parent
26aeeec9b1
commit
2a751d559b
9 changed files with 166 additions and 149 deletions
|
@ -1,5 +1,3 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use crate::{
|
||||
zalsa::ZalsaDatabase, zalsa_local::ActiveQueryGuard, Cycle, Database, Event, EventKind,
|
||||
};
|
||||
|
@ -23,7 +21,7 @@ where
|
|||
&'db self,
|
||||
db: &'db C::DbView,
|
||||
active_query: ActiveQueryGuard<'_>,
|
||||
opt_old_memo: Option<Arc<Memo<C::Output<'_>>>>,
|
||||
opt_old_memo: Option<&Memo<C::Output<'_>>>,
|
||||
) -> &'db Memo<C::Output<'db>> {
|
||||
let zalsa = db.zalsa();
|
||||
let revision_now = zalsa.current_revision();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue