urcu2 0.1.3

Safe API to liburcu
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::collections::list::raw::RawNode;
use crate::rcu::reference;

/// An owned RCU reference to a element removed from an [`RcuList`].
///
/// [`RcuList`]: crate::collections::list::container::RcuList
pub type RefOwned<T> = reference::BoxRefOwned<RawNode<T>>;

/// An RCU reference to a element removed from an [`RcuList`].
///
/// #### Requirements
///
/// `T` must be [`Send`] because [`Drop::drop`] might execute cleanup in another thread.
///
/// [`RcuList`]: crate::collections::list::container::RcuList
pub type Ref<T, F> = reference::RcuRefBox<RawNode<T>, F>;