pub struct BusySpinWaitStrategy;Expand description
Busy Spin Wait Strategy.
Low latency but high CPU usage.
Trait Implementations§
Source§impl WaitStrategy for BusySpinWaitStrategy
impl WaitStrategy for BusySpinWaitStrategy
Source§fn wait_for(
&self,
sequence: i64,
_cursor: &Arc<dyn Sequencer>,
dependent: &Arc<dyn Sequencer>,
barrier: &ProcessingSequenceBarrier,
) -> Result<i64, AlertException>
fn wait_for( &self, sequence: i64, _cursor: &Arc<dyn Sequencer>, dependent: &Arc<dyn Sequencer>, barrier: &ProcessingSequenceBarrier, ) -> Result<i64, AlertException>
Waits for the given sequence to be available.
Source§fn signal_all_when_blocking(&self)
fn signal_all_when_blocking(&self)
Signals all waiting threads that the cursor has advanced.
Auto Trait Implementations§
impl Freeze for BusySpinWaitStrategy
impl RefUnwindSafe for BusySpinWaitStrategy
impl Send for BusySpinWaitStrategy
impl Sync for BusySpinWaitStrategy
impl Unpin for BusySpinWaitStrategy
impl UnwindSafe for BusySpinWaitStrategy
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