pub struct LockFreeBatchProcessor { /* private fields */ }Expand description
Lock-free batch processor for parallel vector operations (ADR-001)
Distributes work across multiple workers without contention.
Implementations§
Source§impl LockFreeBatchProcessor
impl LockFreeBatchProcessor
Sourcepub fn submit(&self, item: BatchItem) -> Result<(), BatchItem>
pub fn submit(&self, item: BatchItem) -> Result<(), BatchItem>
Submit a batch item for processing
Sourcepub fn try_get_work(&self) -> Option<BatchItem>
pub fn try_get_work(&self) -> Option<BatchItem>
Try to get a work item (for workers)
Sourcepub fn submit_result(&self, result: BatchResult)
pub fn submit_result(&self, result: BatchResult)
Submit a result (from workers)
Sourcepub fn collect_results(&self) -> Vec<BatchResult>
pub fn collect_results(&self) -> Vec<BatchResult>
Collect all available results
Auto Trait Implementations§
impl !Freeze for LockFreeBatchProcessor
impl RefUnwindSafe for LockFreeBatchProcessor
impl Send for LockFreeBatchProcessor
impl Sync for LockFreeBatchProcessor
impl Unpin for LockFreeBatchProcessor
impl UnwindSafe for LockFreeBatchProcessor
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more