pub struct ThreadPoolManager { /* private fields */ }
Expand description
Thread pool manager for centralized pool management
Implementations§
Source§impl ThreadPoolManager
impl ThreadPoolManager
Sourcepub fn get_pool(
&self,
profile: ThreadPoolProfile,
) -> LinalgResult<Arc<AdvancedPerformanceThreadPool>>
pub fn get_pool( &self, profile: ThreadPoolProfile, ) -> LinalgResult<Arc<AdvancedPerformanceThreadPool>>
Get or create a thread pool for the specified profile
Sourcepub fn configure_profile(
&self,
profile: ThreadPoolProfile,
config: AdvancedThreadPoolConfig,
)
pub fn configure_profile( &self, profile: ThreadPoolProfile, config: AdvancedThreadPoolConfig, )
Configure a thread pool profile
Sourcepub fn get_all_stats(
&self,
) -> HashMap<ThreadPoolProfile, AdvancedPerformanceStats>
pub fn get_all_stats( &self, ) -> HashMap<ThreadPoolProfile, AdvancedPerformanceStats>
Get performance statistics for all pools
Sourcepub fn auto_optimize_pools(
&self,
) -> LinalgResult<Vec<(ThreadPoolProfile, AdvancedThreadPoolConfig)>>
pub fn auto_optimize_pools( &self, ) -> LinalgResult<Vec<(ThreadPoolProfile, AdvancedThreadPoolConfig)>>
Auto-optimize thread pool configurations based on historical performance
Sourcepub fn apply_optimizations(
&self,
optimizations: Vec<(ThreadPoolProfile, AdvancedThreadPoolConfig)>,
)
pub fn apply_optimizations( &self, optimizations: Vec<(ThreadPoolProfile, AdvancedThreadPoolConfig)>, )
Apply auto-optimization suggestions
Trait Implementations§
Source§impl Debug for ThreadPoolManager
impl Debug for ThreadPoolManager
Auto Trait Implementations§
impl Freeze for ThreadPoolManager
impl RefUnwindSafe for ThreadPoolManager
impl Send for ThreadPoolManager
impl Sync for ThreadPoolManager
impl Unpin for ThreadPoolManager
impl UnwindSafe for ThreadPoolManager
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