pub struct AdvancedPerformanceThreadPool { /* private fields */ }
Expand description
Advanced-performance thread pool with advanced features
Implementations§
Source§impl AdvancedPerformanceThreadPool
impl AdvancedPerformanceThreadPool
Sourcepub fn new(config: AdvancedThreadPoolConfig) -> LinalgResult<Self>
pub fn new(config: AdvancedThreadPoolConfig) -> LinalgResult<Self>
Create a new advanced-performance thread pool
Sourcepub fn get_stats(&self) -> AdvancedPerformanceStats
pub fn get_stats(&self) -> AdvancedPerformanceStats
Get performance statistics
Sourcepub fn execute<F, R>(
&self,
operationtype: OperationType,
task: F,
) -> LinalgResult<R>
pub fn execute<F, R>( &self, operationtype: OperationType, task: F, ) -> LinalgResult<R>
Execute a closure with optimal thread configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdvancedPerformanceThreadPool
impl RefUnwindSafe for AdvancedPerformanceThreadPool
impl Send for AdvancedPerformanceThreadPool
impl Sync for AdvancedPerformanceThreadPool
impl Unpin for AdvancedPerformanceThreadPool
impl UnwindSafe for AdvancedPerformanceThreadPool
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> 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