pub trait TimelineSignal:
Send
+ Sync
+ Debug {
// Required methods
fn value(&self) -> u64;
fn set(&self, value: u64);
fn wait(&self, value: u64, timeout_ms: u64) -> Result<()>;
// Provided method
fn is_reached(&self, value: u64) -> bool { ... }
}Expand description
Monotonic timeline signal for synchronization.
Timeline signals provide a way to order operations across different execution contexts (threads, devices, queues). The signal value only increases, and waiters block until the signal reaches or exceeds the target value.
§Thread Safety
All implementations must be Send + Sync for cross-thread use.
Required Methods§
Provided Methods§
Sourcefn is_reached(&self, value: u64) -> bool
fn is_reached(&self, value: u64) -> bool
Check if the signal has reached value without blocking.