diff --git a/src/progress/mod.rs b/src/progress/mod.rs index 842bbb6..e16bc2a 100644 --- a/src/progress/mod.rs +++ b/src/progress/mod.rs @@ -37,8 +37,11 @@ pub const UNKNOWN: Id = *b"\0\0\0\0"; /// The amount of steps a progress can make pub type Step = usize; +/// The amount of steps a progress can make, for threadsafe counting. +pub type AtomicStep = AtomicUsize; + /// As step, but shareable. -pub type StepShared = Arc; +pub type StepShared = Arc; /// Indicate whether a progress can or cannot be made. #[derive(Default, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]