#rcu #lockless #rc #arc #pointers

rcu-clean

Smart pointers using RCU with Deref support

9 releases

0.1.8 Feb 8, 2023
0.1.7 Feb 5, 2023
0.1.6 Jan 15, 2019
0.1.3 Dec 31, 2018

#347 in Memory management

36 downloads per month

Apache-2.0/MIT

31KB
546 lines

rcu-clean   Latest version Documentation Build Status

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.

Dependencies

~195KB