Struct triple_buffer::TripleBufferOutput
[−]
[src]
pub struct TripleBufferOutput<T: Clone + PartialEq + Send> { /* fields omitted */ }
Consumer interface to the triple buffer
The consumer of data can use this struct to access the latest published update from the producer whenever he likes. Readout is nonblocking: a collision between the producer and consumer will result in cache contention, but deadlocks and scheduling-induced slowdowns cannot happen.
Methods
impl<T: Clone + PartialEq + Send> TripleBufferOutput<T>
[src]
fn read(&mut self) -> &T
Access the latest value from the triple buffer