pub struct CpuTimelineSignal { /* private fields */ }Expand description
CPU-based timeline signal using atomics and condvar.
Efficient for CPU-only workloads. Uses AtomicU64 for the counter and
parking_lot::Condvar for efficient waiting.
Implementations§
Source§impl CpuTimelineSignal
impl CpuTimelineSignal
Sourcepub fn with_initial(initial: u64) -> Self
pub fn with_initial(initial: u64) -> Self
Create a new CPU timeline signal with an initial value.
Trait Implementations§
Source§impl Clone for CpuTimelineSignal
impl Clone for CpuTimelineSignal
Source§fn clone(&self) -> CpuTimelineSignal
fn clone(&self) -> CpuTimelineSignal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CpuTimelineSignal
impl Debug for CpuTimelineSignal
Source§impl Default for CpuTimelineSignal
impl Default for CpuTimelineSignal
Source§impl TimelineSignal for CpuTimelineSignal
impl TimelineSignal for CpuTimelineSignal
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Return this signal as
Any for checked type-erased queue dispatch.Source§fn wait(&self, target: u64, timeout_ms: u64) -> Result<()>
fn wait(&self, target: u64, timeout_ms: u64) -> Result<()>
Wait for the signal to reach or exceed
value. Read moreSource§fn is_reached(&self, value: u64) -> bool
fn is_reached(&self, value: u64) -> bool
Check if the signal has reached
value without blocking.Auto Trait Implementations§
impl Freeze for CpuTimelineSignal
impl !RefUnwindSafe for CpuTimelineSignal
impl Send for CpuTimelineSignal
impl Sync for CpuTimelineSignal
impl Unpin for CpuTimelineSignal
impl UnsafeUnpin for CpuTimelineSignal
impl !UnwindSafe for CpuTimelineSignal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more