Crates.io | rcu-clean |
lib.rs | rcu-clean |
version | 0.1.8 |
source | src |
created_at | 2018-12-28 18:47:09.908674 |
updated_at | 2023-02-08 01:01:05.191285 |
description | Smart pointers using RCU with Deref support. |
homepage | |
repository | https://github.com/droundy/rcu-clean |
max_upload_size | |
id | 104241 |
size | 37,495 |
This crate provides easy to use smart-pointers with interior
mutability. These smart pointers use
RCU to allow
simultaneous reads and updates. They implement Deref
for reads,
which makes them both convenient (ergonomic) and fast on reads,
particularly for the Arc
version that would otherwise require taking
a Mutex
or RwLock
in order to read the pointer. The downside is
that old versions of the data are only freed when you have called the
clean
method on each copy of the pointer.