Benign cargo Download

global.rs

SHA-256948e6489e695859d8865bae3b001487fe97fab7ad7997dc4a145f3b7598da57c
Malecule∅

Evidence

imports mem::CachePadded lines 1–13
1// Definition of global epoch state. The `get` function is the way to
2// access this data externally (until const fn is stabilized...).
3
4use std::sync::atomic::AtomicUsize;
5
6use mem::CachePadded;
7use mem::epoch::garbage;
8use mem::epoch::participants::Participants;
9
10/// Global epoch state
11pub struct EpochState {
12 /// Current global epoch
13 pub epoch: Ca …
imports self::imp::get lines 20–38
20:9… participants: Participants,
21}
22
23unsafe impl Send for EpochState {}
24unsafe impl Sync for EpochState {}
25
26pub use self::imp::get;
27
28#[cfg(not(feature = "nightly"))]
29mod imp {
30 use std::mem;
31 use std::sync::atomic::{self, AtomicUsize};
32 use std::sync::atomic::Ordering::Relaxed;
33
34 use super::EpochState;
35 use mem::CachePadded;
36 use mem::epoch::participants::Participants;
37
38 impl EpochState …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.