INNER CODE UNIT · Rust

drop

xoriors/rencfs · src/arc_hashmap.rs:22

    fn drop(&mut self) {
        self.rc.fetch_sub(1, Ordering::SeqCst);
        // debug!(remaining = self.rc.load(Ordering::SeqCst), "Dropping guard");
        self.map.purge();
    }
}

impl<K: Eq + Hash, V> Deref for Holder<'_, K, V> {
    type Target = V;

    fn deref(&self) -> &Self::Target {
        &self.val
    }
}

impl<K: Eq + Hash, V> Default for ArcHashMap<K, V> {
    fn default() -> Self {
        Self {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…