1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#![cfg_attr(not(feature = "std"), no_std)]
#![warn(missing_docs)]
#[cfg(not(feature = "std"))]
extern crate alloc;
#[cfg(test)]
extern crate std;
pub use arrayvec;
pub use reclaim;
use reclaim::{Reclaim, Retired};
pub mod bag;
pub mod epoch;
pub mod thread;
pub trait LocalAccess
where
Self: Clone + Copy + Sized,
{
type Reclaimer: Reclaim;
fn is_active(self) -> bool;
fn set_active(self);
fn set_inactive(self);
fn retire_record(self, record: Retired<Self::Reclaimer>);
}
include!(concat!(env!("OUT_DIR"), "/build_constants.rs"));
pub const EPOCH_CACHE_SIZE: usize = DEBRA_EPOCH_CACHE_SIZE;