pub struct NumaAwareThreadPool { /* private fields */ }Expand description
NUMA-aware thread pool for systems with multiple memory nodes
Implementations§
Source§impl NumaAwareThreadPool
impl NumaAwareThreadPool
Sourcepub fn new(config: ThreadPoolConfig) -> Self
pub fn new(config: ThreadPoolConfig) -> Self
Create a NUMA-aware thread pool
Sourcepub fn submit_numa<F>(
&self,
task: F,
preferred_node: Option<usize>,
) -> Result<TaskHandle<()>, ThreadPoolError>
pub fn submit_numa<F>( &self, task: F, preferred_node: Option<usize>, ) -> Result<TaskHandle<()>, ThreadPoolError>
Submit a task to the appropriate NUMA node
Auto Trait Implementations§
impl Freeze for NumaAwareThreadPool
impl !RefUnwindSafe for NumaAwareThreadPool
impl Send for NumaAwareThreadPool
impl Sync for NumaAwareThreadPool
impl Unpin for NumaAwareThreadPool
impl UnsafeUnpin for NumaAwareThreadPool
impl !UnwindSafe for NumaAwareThreadPool
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