pub struct SimpleThreadPool { /* private fields */ }Expand description
Basic CPU worker pool implementation of interfaces::WorkerPool.
Tasks are executed by a fixed number of worker threads created at construction time.
Implementations§
Source§impl SimpleThreadPool
impl SimpleThreadPool
Sourcepub fn thread_count(&self) -> usize
pub fn thread_count(&self) -> usize
Number of worker threads in this pool.
Trait Implementations§
Source§impl Debug for SimpleThreadPool
impl Debug for SimpleThreadPool
Source§impl Drop for SimpleThreadPool
impl Drop for SimpleThreadPool
impl Send for SimpleThreadPool
Auto Trait Implementations§
impl !Sync for SimpleThreadPool
impl Freeze for SimpleThreadPool
impl RefUnwindSafe for SimpleThreadPool
impl Unpin for SimpleThreadPool
impl UnsafeUnpin for SimpleThreadPool
impl UnwindSafe for SimpleThreadPool
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